From 1a7612a9765b36855e845a01cdd32e963771b3d2 Mon Sep 17 00:00:00 2001 From: Andrew Simonson Date: Sun, 29 Jan 2023 11:11:08 -0600 Subject: [PATCH] nginx http and www redirects --- flask.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/flask.conf b/flask.conf index 449eab3..3afc627 100644 --- a/flask.conf +++ b/flask.conf @@ -1,6 +1,10 @@ server { listen 8080; + server_name _; + + return 301 https://asimonson.com$request_uri + location / { proxy_pass http://localhost:5000/; proxy_set_header Host $host;