fix: configurable CAPTCHA_ENABLE env when docker use

This commit is contained in:
ichisuke55 2023-02-20 23:22:25 +09:00
parent bad36b5e75
commit 25dcc81e03

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