Files
sarlink-portal-api/.build/prod/nginx.conf
Shihaam Abdul Rahman d0c809489c
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 3m38s
fix nginx path
2025-07-27 13:23:14 +05:00

27 lines
635 B
Nginx Configuration File

server {
listen 80;
server_name _;
access_log /dev/stdout;
error_log /dev/stdout info;
# Serve static files
location /static/ {
alias /var/www/html/staticfiles/;
}
location /media/ {
alias /var/www/html/media/;
}
# Forward requests to Gunicorn
location / {
proxy_pass http://portal-api: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;
proxy_set_header X-Forwarded-Proto $scheme;
client_max_body_size 6M;
}
}