Alf Eaton c16fb06ecd Log the settings files that are used %!s(int64=5) %!d(string=hai) anos
..
LICENSE 5f50672342 Create LICENSE %!s(int64=12) %!d(string=hai) anos
README.md 6d33d383d0 Update README.md %!s(int64=7) %!d(string=hai) anos
Settings.coffee c16fb06ecd Log the settings files that are used %!s(int64=5) %!d(string=hai) anos
index.js 3133f85164 Initial open source commit %!s(int64=12) %!d(string=hai) anos
package.json 006cfb0142 Upgrade minor version %!s(int64=8) %!d(string=hai) anos

README.md

overleaf/settings-module

A small module to allow global config settings to be set for all services within the Overleaf architecture.

Settings file location

You can specify a custom location for the settings file by setting the SHARELATEX_CONFIG environment variable. E.g.

$ export SHARELATEX_CONFIG=/home/james/config/settings.development.coffee

Otherwise, the settings will be loaded from config/settings.NODE_ENV.coffee, where NODE_ENV is another evnironment variable, or defaults to development.

The config directory is first looked for in the current directory, and then relative to the settings module directory.