fix: added one more cors domain and changed ip-range for local network

This commit is contained in:
th33xitus
2021-01-28 18:02:21 +01:00
parent a6156ebdf3
commit 4652e5c177

View File

@@ -249,7 +249,7 @@ MOONRAKERCONF
create_multi_moonraker_conf(){ create_multi_moonraker_conf(){
HOSTNAME=$(hostname -I | cut -d" " -f1) HOSTNAME=$(hostname -I | cut -d" " -f1)
LOCAL_NETWORK="$(hostname -I | cut -d" " -f1 | cut -d"." -f1-3).0/24" LOCAL_NETWORK="$(hostname -I | cut -d" " -f1 | cut -d"." -f1-3).0/16"
/bin/sh -c "cat > $MOONRAKER_CONF_LOC/printer_$INSTANCE/moonraker.conf" << MOONRAKERCONF /bin/sh -c "cat > $MOONRAKER_CONF_LOC/printer_$INSTANCE/moonraker.conf" << MOONRAKERCONF
[server] [server]
@@ -269,6 +269,7 @@ trusted_clients:
FE80::/10 FE80::/10
cors_domains: cors_domains:
http://*.local http://*.local
https://*.local
http://my.mainsail.xyz http://my.mainsail.xyz
https://my.mainsail.xyz https://my.mainsail.xyz
http://app.fluidd.xyz http://app.fluidd.xyz