docker builder

This commit is contained in:
acidburnmonkey
2025-08-06 02:37:54 -04:00
parent d5e0fc56c3
commit 06a304579c
3 changed files with 69 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
server {
listen 80;
server_name acidarchon.com www.acidarchon.com localhost;
# Serve static files
location /static/ {
alias /app/staticfiles/;
expires 30d;
add_header Cache-Control "public, immutable";
}
# Proxy to Django
location / {
proxy_pass http://web:8000; # 'web' is the service name
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;
# WebSocket support
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}