The server for Open Course World
1#!/bin/bash
2
3bindip="127.0.0.1"
4export APP_URLS="http://$bindip"
5export ENABLE_API_DEV_USER='true'
6export LISTEN_ADDRESS="$bindip:6000"
7export LISTEN_ADDRESS_HTTP="$bindip:6001"
8export DNS_WHITELIST="$bindip:6000,$bindip:6001"
9export DEBUG_LEVEL='light'
10export COURSE_IMPORT_REQUIRE_VERIFY='false'
11export COURSE_IMPORT_ENABLE_CACHE='true'
12export USE_DUMP_FOR_SEARCHES='false'
13#export DUMP_FILENAME='/mnt/path/dump_nothumb.db'
14#export DUMP_THUMBS_FILENAME='/mnt/path/dump_onlythumb.db'
15export DATA_VIEW_TYPE='combined_dyna'
16export DYNA_URL='postgres://ocw@127.0.0.1:5432/ocw?sslmode=disable'
17export MIXED_DIFFICULTY='false'
18export JWT_SECRET='localdev'
19
20go run -v main.go