From 13781ba7d9e221a9dd389be90a3b82d815aa5bce Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Tue, 27 Sep 2022 06:17:27 +0000 Subject: [PATCH] Move https responsibilities to caddy --- Caddyfile | 3 +++ start | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 Caddyfile diff --git a/Caddyfile b/Caddyfile new file mode 100644 index 0000000..91d59ba --- /dev/null +++ b/Caddyfile @@ -0,0 +1,3 @@ +undercover.cafe + +reverse_proxy :8080 diff --git a/start b/start index ff1a855..0362957 100755 --- a/start +++ b/start @@ -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