Start adding deployment infra.

This commit is contained in:
jmsgrogan 2024-02-18 14:09:12 +00:00
parent 288759146c
commit 9576202fa1
11 changed files with 121 additions and 12 deletions

4
nginx/Dockerfile Normal file
View file

@ -0,0 +1,4 @@
FROM docker.io/nginx
RUN rm /etc/nginx/conf.d/default.conf
COPY nginx.conf /etc/nginx/conf.d

20
nginx/nginx.conf Normal file
View file

@ -0,0 +1,20 @@
upstream wedding_site {
server web:8000;
}
server {
listen 80;
location / {
proxy_pass http://wedding_site;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_redirect off;
}
location /static/ {
alias /staticfiles/;
}
}