script: updating webui nginx config and moonraker.conf template

This commit is contained in:
th33xitus
2021-04-05 08:59:19 +02:00
parent 40ba33eb19
commit 865fbc07dc
2 changed files with 7 additions and 3 deletions

View File

@@ -2,12 +2,11 @@
server {
listen 80;
listen [::]:80;
access_log /var/log/nginx/<<UI>>-access.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_vary on;
gzip_proxied any;
@@ -17,12 +16,16 @@ server {
gzip_http_version 1.1;
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>>;
index index.html;
server_name _;
# disable max upload size checks
client_max_body_size 0;
# disable proxy request buffering
proxy_request_buffering off;
location / {

View File

@@ -15,6 +15,7 @@ trusted_clients:
::1/128
FE80::/10
cors_domains:
*.lan
*.local
*://my.mainsail.xyz
*://app.fluidd.xyz