ci(Dev): Using docker to serve django and vue on same host.

This commit is contained in:
2024-09-28 14:04:13 -05:00
parent a7147d1850
commit 2c8911fb78
5 changed files with 56 additions and 1 deletions

18
nginx.conf Normal file
View File

@@ -0,0 +1,18 @@
server {
listen 80;
server_name donconfiao.org;
location /frontend {
alias /var/www/frontend/;
# index index.html;
autoindex on;
}
location / {
proxy_pass http://django:9090;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}