[docker] begin preparation

master
Nico Schottelius 3 years ago
parent 50862d2e8e
commit d1fdde72a0

@ -0,0 +1,7 @@
FROM ungleich/nginx-letsencrypt-ipv6
LABEL maintainer = "docker@ungleich.ch"
RUN apk add --no-cache py3-flask
COPY server.py /
COPY nginx.conf /etc/nginx/https.conf
COPY entrypoint-post-https.sh /

@ -0,0 +1,2 @@
#!/bin/sh
python3 /server.py

@ -0,0 +1,7 @@
location / {
proxy_pass http://localhost:5000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
Loading…
Cancel
Save