54 lines
1.2 KiB
Nginx Configuration File
54 lines
1.2 KiB
Nginx Configuration File
# This file is part of SplitFlapController project.
|
|
# Copyright (C) 2024-2025 GuniaLabs (www.dennisgunia.de)
|
|
# Author: Dennis Gunia
|
|
#
|
|
# This program is licensed under the AGPLv3 license. You can find a copy
|
|
# of the license in the LICENSE file in the root directory of this
|
|
# project.
|
|
|
|
|
|
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;
|
|
}
|
|
}
|
|
|
|
|
|
}
|