GooDrive/frontend/nginx.conf
2026-10-13 19:43:55 +02:00

33 lines
877 B
Nginx Configuration File

server {
listen 1028;
server_name _;
root /usr/share/nginx/html;
index index.html;
client_max_body_size 0;
client_body_timeout 3600s;
send_timeout 3600s;
location /api/ {
proxy_pass http://backend:1029;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
proxy_request_buffering off;
proxy_buffering off;
proxy_read_timeout 3600s;
proxy_send_timeout 3600s;
}
location /django-admin/ {
proxy_pass http://backend:1029;
proxy_set_header Host $host;
}
location /static/ {
proxy_pass http://backend:1029;
proxy_set_header Host $host;
}
location / {
try_files $uri $uri/ /index.html;
}
}