applications-tracker/nginx.proxy.conf

36 lines
706 B
Plaintext
Raw Normal View History

2024-09-11 18:11:44 +01:00
events {
worker_connections 2024;
}
http {
proxy_read_timeout 600;
proxy_connect_timeout 600;
proxy_send_timeout 600;
2024-09-11 18:11:44 +01:00
include mime.types;
2024-09-11 18:11:44 +01:00
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 8001;
client_max_body_size 5G;
location / {
root /www/page;
2024-09-11 18:11:44 +01:00
}
location /api {
proxy_http_version 1.1;
proxy_pass http://localhost:8080;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
}
}
}