Added webserver

This commit is contained in:
Dennis Gunia
2025-10-19 19:51:30 +02:00
parent e02620c22a
commit 03840abca4
5 changed files with 56 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
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;
}
}
}