Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

Commit 4935ade

Browse files
authored
Update 20210427 (#29)
* Update .gitignore add .DS_Store * Update moonraker.conf add http://*.lan to cors_domains * Delete .mainsail.json Delete .mainsail.json, because it is no longer needed by mainsail * update nginx config disable proxy request buffering (upload larger gcode files)
1 parent 77fa26e commit 4935ade

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ src/vagrant/.vagrant
1313
.vscode
1414
.idea
1515
build.log
16+
.DS_Store

src/modules/klipper_moonraker/filesystem/home/pi/klipper_config/moonraker.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ cors_domains:
1010
https://my.mainsail.xyz
1111
http://my.mainsail.xyz
1212
http://*.local
13+
http://*.lan
1314
trusted_clients:
1415
10.0.0.0/8
1516
127.0.0.0/8

src/modules/mainsail/filesystem/home/pi/klipper_config/.mainsail.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/modules/mainsail/filesystem/root/etc/nginx/sites-available/mainsail

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ server {
44
access_log /var/log/nginx/mainsail-access.log;
55
error_log /var/log/nginx/mainsail-error.log;
66

7-
#disable this section on smaller hardware like a pi zero
7+
# disable this section on smaller hardware like a pi zero
88
gzip on;
99
gzip_vary on;
1010
gzip_proxied any;
@@ -14,12 +14,16 @@ server {
1414
gzip_http_version 1.1;
1515
gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/json application/xml;
1616

17-
#web_path from mainsail static files
17+
# web_path from mainsail static files
1818
root /home/pi/mainsail;
1919

2020
index index.html;
2121
server_name _;
2222

23+
# disable max upload size checks
24+
client_max_body_size 0;
25+
26+
# disable proxy request buffering
2327
proxy_request_buffering off;
2428

2529
location / {

0 commit comments

Comments
 (0)