Move https responsibilities to caddy

This commit is contained in:
Sage Vaillancourt 2022-09-27 06:17:27 +00:00
parent 3857674244
commit 13781ba7d9
2 changed files with 4 additions and 1 deletions

3
Caddyfile Normal file
View File

@ -0,0 +1,3 @@
undercover.cafe
reverse_proxy :8080

2
start
View File

@ -15,7 +15,7 @@ fi
if [[ "$1" == "prod" ]]; then
echo "Starting gunicorn production server..."
gunicorn -b 0.0.0.0:80 -b 0.0.0.0:443 "undercover:create_app()"
gunicorn -b localhost:8080 "undercover:create_app()"
else
echo "Starting local dev server..."
export FLASK_APP=undercover