Files
ihrm/docker/nginx.conf
Horilla 67caeec325 Fix docker (#953)
* [FIX] DOCKER: Update docker files to standardize the dev and prod Docker image

* [FIX] DOCKER: Fix docker configuration of Horilla for runtime errors

* [FIX] Standardise and reduce Docker configuration of Horilla

* [UPDT] DOCKER: Standardise directory structure of Docker and related files for Horilla standards (#934)

* Multi stage Dockerfile for size reduction
2025-10-25 19:17:53 +05:30

31 lines
624 B
Nginx Configuration File

events {
worker_connections 1024;
}
http {
upstream django {
server web:8000;
}
server {
listen 80;
client_max_body_size 50M;
location /static/ {
alias /static/;
expires 1y;
}
location /media/ {
alias /media/;
}
location / {
proxy_pass http://django;
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;
}
}
}