Merge pull request #1393 from ichisuke55/fix-captcha-env

fix: configurable CAPTCHA_ENABLE env when docker use
This commit is contained in:
Matt Scott 2023-02-20 10:25:28 -05:00 committed by GitHub
commit 3ec66c359b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,6 +61,7 @@ legal_envvars = (
'FILESYSTEM_SESSIONS_ENABLED', 'FILESYSTEM_SESSIONS_ENABLED',
'SESSION_COOKIE_SECURE', 'SESSION_COOKIE_SECURE',
'CSRF_COOKIE_SECURE', 'CSRF_COOKIE_SECURE',
'CAPTCHA_ENABLE',
) )
legal_envvars_int = ('PORT', 'MAIL_PORT', 'SAML_METADATA_CACHE_LIFETIME') legal_envvars_int = ('PORT', 'MAIL_PORT', 'SAML_METADATA_CACHE_LIFETIME')
@ -84,6 +85,7 @@ legal_envvars_bool = (
'FILESYSTEM_SESSIONS_ENABLED', 'FILESYSTEM_SESSIONS_ENABLED',
'SESSION_COOKIE_SECURE', 'SESSION_COOKIE_SECURE',
'CSRF_COOKIE_SECURE', 'CSRF_COOKIE_SECURE',
'CAPTCHA_ENABLE',
) )
# import everything from environment variables # import everything from environment variables