mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-14 11:04:29 +05:00
script: updating webui nginx config and moonraker.conf template
This commit is contained in:
@@ -2,12 +2,11 @@
|
|||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
listen [::]:80;
|
|
||||||
|
|
||||||
access_log /var/log/nginx/<<UI>>-access.log;
|
access_log /var/log/nginx/<<UI>>-access.log;
|
||||||
error_log /var/log/nginx/<<UI>>-error.log;
|
error_log /var/log/nginx/<<UI>>-error.log;
|
||||||
|
|
||||||
#disable this section on smaller hardware like a pi zero
|
# disable this section on smaller hardware like a pi zero
|
||||||
gzip on;
|
gzip on;
|
||||||
gzip_vary on;
|
gzip_vary on;
|
||||||
gzip_proxied any;
|
gzip_proxied any;
|
||||||
@@ -17,12 +16,16 @@ server {
|
|||||||
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;
|
||||||
|
|
||||||
#web_path from <<UI>> static files
|
# web_path from <<UI>> static files
|
||||||
root /home/pi/<<UI>>;
|
root /home/pi/<<UI>>;
|
||||||
|
|
||||||
index index.html;
|
index index.html;
|
||||||
server_name _;
|
server_name _;
|
||||||
|
|
||||||
|
# disable max upload size checks
|
||||||
|
client_max_body_size 0;
|
||||||
|
|
||||||
|
# disable proxy request buffering
|
||||||
proxy_request_buffering off;
|
proxy_request_buffering off;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ trusted_clients:
|
|||||||
::1/128
|
::1/128
|
||||||
FE80::/10
|
FE80::/10
|
||||||
cors_domains:
|
cors_domains:
|
||||||
|
*.lan
|
||||||
*.local
|
*.local
|
||||||
*://my.mainsail.xyz
|
*://my.mainsail.xyz
|
||||||
*://app.fluidd.xyz
|
*://app.fluidd.xyz
|
||||||
|
|||||||
Reference in New Issue
Block a user