Handle custom 403/404 pages
This commit is contained in:
@@ -10,6 +10,9 @@ Create a file (e.g., called `run.sh`) with the following:
|
||||
#!/bin/bash
|
||||
export FLASK_SERVE_DIR="/home/YOURUSER/workspace/somesite/build/html"
|
||||
export FLASK_MOTHERSHIP="http://localhost:8888/api/staticshield"
|
||||
# Optional path to 403.html, 404.html to show on those errors; leave empty to use default messages
|
||||
export FLASK_ERROR_PAGES_DIR=""
|
||||
#export FLASK_ERROR_PAGES_DIR="/home/YOURUSER/workspace/errorpages/"
|
||||
export FLASK_SESSION_COOKIE_NAME="staticshield"
|
||||
export FLASK_PERMANENT_SESSION_LIFETIME=7200
|
||||
|
||||
@@ -55,6 +58,9 @@ WorkingDirectory=/srv/staticshield
|
||||
#StandardOutput=file:/srv/logs/staticshield.log
|
||||
Environment=FLASK_SERVE_DIR="/srv/some_static_website/html"
|
||||
Environment=FLASK_MOTHERSHIP="https://api.example.com/api/staticshield"
|
||||
# Optional path to 403.html, 404.html to show on those errors; leave empty to use default messages
|
||||
Environment=FLASK_ERROR_PAGES_DIR=""
|
||||
#Environment=FLASK_ERROR_PAGES_DIR="/srv/shared/errorpages/"
|
||||
Environment=FLASK_SESSION_COOKIE_NAME="staticshield"
|
||||
# Max session length of 2h
|
||||
Environment=FLASK_PERMANENT_SESSION_LIFETIME=7200
|
||||
|
||||
Reference in New Issue
Block a user