Added webserver
This commit is contained in:
44
software/pc_client/nginx/nginx.conf
Normal file
44
software/pc_client/nginx/nginx.conf
Normal 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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
12
software/pc_client/nginx/run.sh
Executable file
12
software/pc_client/nginx/run.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 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.
|
||||
|
||||
# Run the nginx server with the specified configuration file in background
|
||||
sudo nginx -c $(pwd)/nginx.conf
|
||||
Reference in New Issue
Block a user