mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-19 22:04:27 +05:00
script: update nginx configurations
This commit is contained in:
@@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
This document covers possible important changes to KIAUH.
|
This document covers possible important changes to KIAUH.
|
||||||
|
|
||||||
|
### 2021-07-10
|
||||||
|
* The NGINX configuration files got updated to be in sync with MainsailOS and FluiddPi. Issues with the NGINX service not starting up due to wrong configuration should be resolved now. To get the updated configuration files, please remove Moonraker and Mainsail / Fluidd with KIAUH first and then re-install it. An automated file check for those configuration files might follow in the future which then automates updating those files if there were important changes.
|
||||||
|
|
||||||
### 2021-06-29
|
### 2021-06-29
|
||||||
* KIAUH will now patch the new `log_path` to existing moonraker.conf files when updating Moonraker and the entry is missing. Before that, it was necessary that the user provided that path manually to make Fluidd display the logfiles in its interface. This issue should be resolved now.
|
* KIAUH will now patch the new `log_path` to existing moonraker.conf files when updating Moonraker and the entry is missing. Before that, it was necessary that the user provided that path manually to make Fluidd display the logfiles in its interface. This issue should be resolved now.
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ server {
|
|||||||
gzip_comp_level 4;
|
gzip_comp_level 4;
|
||||||
gzip_buffers 16 8k;
|
gzip_buffers 16 8k;
|
||||||
gzip_http_version 1.1;
|
gzip_http_version 1.1;
|
||||||
gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/json application/xml;
|
gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/json application/xml application/javascript;
|
||||||
|
|
||||||
# web_path from <<UI>> static files
|
# web_path from <<UI>> static files
|
||||||
root /home/pi/<<UI>>;
|
root /home/pi/<<UI>>;
|
||||||
@@ -56,6 +56,18 @@ server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
location /webcam/ {
|
location /webcam/ {
|
||||||
proxy_pass http://mjpgstreamer/;
|
proxy_pass http://mjpgstreamer1/;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /webcam2/ {
|
||||||
|
proxy_pass http://mjpgstreamer2/;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /webcam3/ {
|
||||||
|
proxy_pass http://mjpgstreamer3/;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /webcam4/ {
|
||||||
|
proxy_pass http://mjpgstreamer4/;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,13 +1,25 @@
|
|||||||
# /etc/nginx/conf.d/upstreams.conf
|
# /etc/nginx/conf.d/upstreams.conf
|
||||||
|
|
||||||
upstream apiserver {
|
upstream apiserver {
|
||||||
#edit your api port here
|
|
||||||
ip_hash;
|
ip_hash;
|
||||||
server 127.0.0.1:7125;
|
server 127.0.0.1:7125;
|
||||||
}
|
}
|
||||||
|
|
||||||
upstream mjpgstreamer {
|
upstream mjpgstreamer1 {
|
||||||
#edit your webcam port here
|
|
||||||
ip_hash;
|
ip_hash;
|
||||||
server 127.0.0.1:8080;
|
server 127.0.0.1:8080;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
upstream mjpgstreamer2 {
|
||||||
|
ip_hash;
|
||||||
|
server 127.0.0.1:8081;
|
||||||
|
}
|
||||||
|
|
||||||
|
upstream mjpgstreamer3 {
|
||||||
|
ip_hash;
|
||||||
|
server 127.0.0.1:8082;
|
||||||
|
}
|
||||||
|
|
||||||
|
upstream mjpgstreamer4 {
|
||||||
|
ip_hash;
|
||||||
|
server 127.0.0.1:8083;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user