· 6 years ago · Apr 10, 2019, 04:10 AM
1SUB_PREFIX // "/s" with no tailing slash
2WEBPACK_MANIFEST_PATH // unpacked in __init__.py, used in webpack.config.js line 49 -- unsure of purpose
3ENABLE_SECURITY_QUESTIONS // enable security questions for user accounts?
4CAS_AUTHORIZED_HOSTS // Hosts that can use CAS SSO
5DB_NAME // Name of throat database on SQL server
6DB_HOST // Host of SQL server
7DB_USER // User with access to database on SQL server
8DB_PASSWD // Password for database user
9DATABASE_URL // mysql protocol url... current config.py compiles this from DB_* items. This is silly, but the code still uses DB_* and this allows for a remote DB
10COPY // copyright string, minus the symbol
11LEMA // Site name string
12WEBSOCKET_SERVER // Server hosting websocket, usually localhost and port, used for chat and events like subscribe and voting
13RECAPTCHA_PUBLIC_KEY // public key for recaptcha
14CACHE_REDIS_HOST // Server hosting redis
15CACHE_REDIS_PORT // Port for redis server
16CACHE_REDIS_DB // Redis database index
17SOCKETIO_REDIS_URL // Redis url, port, and database index used for SocketIO, url
18ENABLE_TOTP // Enabled TOTP for admins, boolean
19SENDGRID_API_KEY // API key for SendGrid email service
20SENDGRID_DEFAULT_FROM // Default "from:" address for SendGrid emails
21CHANGELOG_SUB // SubPost.sid of sub used for changelog
22ALLOW_UPLOADS // Allow image uploading, boolean
23STORAGE_HOST // Server where uploads are sent, url
24STORAGE // Location where uploads are placed, path
25THUMBNAIL_HOST // Server where thumnails are sent, url
26THUMBNAILS // Location where thumbnails are placed, path
27XMR_ADDRESS // Address for XMR donations
28ON_POST_REPORT // Allow post reporting? Seems to be related to whether it works, not whether it shows. boolean
29ON_COMMENT_REPORT // Allow comment reporting? Seems to be related to whether it works, not whether it shows. boolean
30
31WTF_CSRF_ENABLED // Flag to enable CSRF Protection? Doesn't actually do anything, nor would it be adviseable to switch off... this shouldn't exist. boolean
32WTF_CSRF_SECRET_KEY // Key used to encrypt cookies. Current config uses SECRET_KEY, 2for1 special.
33
34DEBUG // Flask builtin: Debug logging, boolean
35TESTING // Flask builtin: debug logging, turn off level restrictions, boolean
36SECRET_KEY // Flask builtin: key for signing session cookie, make it long and random
37MAX_CONTENT_LENGTH // Flask builtin: set max upload size
38
39CACHE_TYPE // unused in code, exists in config.py
40RECAPTCHA_PRIVATE_KEY // unused in code, exists in config.py
41
42Additional Flask Builtin Configuration Values: http://flask.pocoo.org/docs/1.0/config/#builtin-configuration-values