Files
split-flap-controller/software/pc_client/nginx/nginx.conf
2025-10-19 19:51:30 +02:00

45 lines
969 B
Nginx Configuration File

events {}
http {
##
# Basic Settings
##
sendfile on;
tcp_nopush on;
types_hash_max_size 2048;
include /etc/nginx/mime.types;
default_type application/octet-stream;
gzip on;
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 8087 default_server;
listen [::]:8087 default_server;
root /nas_projects/current/SplitFlapController/software/pc_client/nginx/www/web_gui;
# Add index.php to the list if you are using PHP
index index.html index.htm index.nginx-debian.html;
location /manage/ {
proxy_pass http://localhost:8089;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_connect_timeout 7d;
proxy_send_timeout 7d;
proxy_read_timeout 7d;
}
}
}