Document the error pages dir
This commit is contained in:
@@ -139,6 +139,11 @@ server {
|
||||
proxy_pass http://127.0.0.1:8000;
|
||||
}
|
||||
|
||||
# Optional, when using the FLASK_ERROR_PAGES_DIR
|
||||
# location /404images/ {
|
||||
# alias /srv/shared/errorpages/;
|
||||
# }
|
||||
|
||||
location /favicon.ico {
|
||||
alias /srv/whatever/_static/favicon.ico;
|
||||
}
|
||||
|
||||
@@ -33,6 +33,7 @@ Session(app)
|
||||
# Verify the required configuration
|
||||
# SERVE_DIR: Base dir of the files we want to serve; Flask will take care not to escape this dir
|
||||
# MOTHERSHIP: Mothership server and login-url, which will redirect here with a sessionstart/SEKRIT
|
||||
# ERROR_PAGES_DIR: (optional) Base dir of 403.html, 404.html to show as alternative to default short error message
|
||||
config_vars = ['SERVE_DIR', 'MOTHERSHIP', 'ERROR_PAGES_DIR']
|
||||
for config_var in config_vars:
|
||||
if config_var not in app.config:
|
||||
|
||||
Reference in New Issue
Block a user