You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Supports setting an env var for CDN_ASSET_HOST.
Doing so will prepend the asset urls that are built
in asset_resolver with a cdn.
For this to work, you need to set CDN_ASSET_HOST=https://cdn.com
Then upload everything from packages/app/obojobo-express/server/public
to the cdn after running yarn build.
Copy file name to clipboardExpand all lines: README.md
+30Lines changed: 30 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,6 +66,36 @@ Once logged in, visit [https://127.0.0.1:8080/editor](https://127.0.0.1:8080/edi
66
66
67
67
`yarn test` or `yarn test:ci`
68
68
69
+
### Deployment and Setup
70
+
71
+
For deployment, there are several places you can set configuration options. Obojobo uses a hybrid of json files and environment variables. We are moving more toward using more environment variables. However, json config files can be found in several obojobo packages (they are usually in server/config/*.json files). Below are a set of environment variables that we recommend using
72
+
73
+
-`CDN_ASSET_HOST`: If you want to host compiled browser assets (js/css/etc) on a CDN. Ex value: `https://site.com`
74
+
-`NODE_ENV`: determines which environment from the config files will be used. Use production unless you have a use for multiple environments.
75
+
-`DB_USER`: db user
76
+
-`DB_PASS`: db pass
77
+
-`DB_HOST`: db host
78
+
-`DB_NAME`: db name
79
+
-`DB_PORT`: db port
80
+
-`DB_SSL_JSON`: enable or disable using ssl to connect to the database
81
+
-`DB_TIMEOUT`: ex: 29000. Used to set the pg-promise settings for query_timeout and statement_timeout.
82
+
-`OBO_LTI_KEYS_JSON`: ex: '{"key1":"secret1","key2":"secret2}'. Use json string to define valid lti key/secret pairs.
83
+
-`OBO_LTI_USERNAME_PARAM`: What lti launch param do you want to use as the username in obojobo. ex: `user_id` or `lis_person_sourcedid`
84
+
-`OBO_COOKIE_SECRET`: Randomized secret key that is used to encrypt cookies. See the docs for express-session.
85
+
-`OBO_COOKIE_SECURE`: Set to true when using https. See docs for express-session. Used to set secure, sameSite and httpOnly options.
86
+
-`DEBUG`: Logging Verbosity. Use obojobo_server:* for more output. ex: `obojobo_server:error,obojobo_server:warn`
87
+
-`YARN_PRODUCTION`: Set to true. Makes sure yarn install includes dev dependencies.
88
+
-`OBO_DEMO_PURGE_MODE`: Automatically purge old data for demo purposes or to limit database growth. Additional addon setup required. ex: disabled (default), DANGER-delete-HISTORY-data, DANGER-delete-ALL-data
89
+
-`OBO_DEMO_PURGE_DAYS_AGO`: If purge mode is enabled, purge data older than this many days. ex: 7
90
+
-`OBO_EDITLOCK_TIME_UNTIL_RELEASE_MINUTES`: Editor lock: period of inactivity to release the lock. ex: 45
91
+
-`OBO_EDITLOCK_TIME_UNTIL_WARN_MINUTES`: Editor lock: period of inactivity to warn the user about lock release. ex: 40
92
+
-`OBO_EDITLOCK_DB_LOCK_DURATION`: Editor lock: period of time a lock lasts unless it is renewed. ex: 5
93
+
-`OBO_LTI_GUID`: A GUID unique to this install of Obojobo. Google LTI launch param tool_consumer_instance_guid for more details. ex: `edu.your-school.obojobo`
94
+
-`MATERIA_OAUTH_KEY`: LTI Oauth key used just for the optional Materia integration.
95
+
-`MATERIA_OAUTH_SECRET`: LTI Oauth secret used the optional Materia integration.
96
+
-`MATERIA_HOST`: URL for the optional Materia integration. ex: https://your.materia.com
97
+
-`OBO_OPTIONAL_NODES`: Comma separated list of optional nodes that are already installed to enable. ex: `*` or `obojobo-chunks-materia`
98
+
69
99
### Special Thanks
70
100
71
101
Support for this work was provided by the National Science Foundation Scholarships in Science, Technology, Engineering, and Mathematics (S-STEM) program under [Award No.1643835](https://www.nsf.gov/awardsearch/showAward?AWD_ID=1643835). Any opinions, findings, conclusions and recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.
0 commit comments