sick to my stomach

This commit is contained in:
2023-01-29 13:25:00 -06:00
parent 15c9aef875
commit 0ef8ad597f
2 changed files with 5 additions and 3 deletions

View File

@@ -1,5 +1,3 @@
# nginx-gunicorn-flask
FROM ubuntu:lunar FROM ubuntu:lunar
LABEL maintainer="Andrew Simonson <asimonson1125@gmail.com>" LABEL maintainer="Andrew Simonson <asimonson1125@gmail.com>"
@@ -7,7 +5,6 @@ ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update RUN apt-get update
RUN apt-get install -y python3-pip nginx gunicorn supervisor RUN apt-get install -y python3-pip nginx gunicorn supervisor
# do we really need venv?
# Setup flask application # Setup flask application
RUN mkdir -p /deploy/app RUN mkdir -p /deploy/app

View File

@@ -1,9 +1,14 @@
server { server {
listen 8080; listen 8080;
server_name _;
location / { location / {
proxy_pass http://localhost:5000/; proxy_pass http://localhost:5000/;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
} }
path https://$server_name$request_uri;
return 301 https://$host$request_uri;
} }