mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-14 19:14:27 +05:00
fix: add more trusted clients, cors domains, auto create a config folder if missing for whatever reason
This commit is contained in:
@@ -228,17 +228,16 @@ api_key_file: ~/.moonraker_api_key
|
||||
trusted_clients:
|
||||
127.0.0.1
|
||||
$LOCAL_NETWORK
|
||||
::1/128
|
||||
FE80::/10
|
||||
cors_domains:
|
||||
http://*.*
|
||||
http://*.local
|
||||
http://my.mainsail.app
|
||||
https://my.mainsail.app
|
||||
http://app.fluidd.xyz
|
||||
https://app.fluidd.xyz
|
||||
http://$HOSTNAME
|
||||
|
||||
[update_manager]
|
||||
#client_repo:
|
||||
#client_path:
|
||||
MOONRAKERCONF
|
||||
}
|
||||
|
||||
@@ -260,17 +259,16 @@ api_key_file: ~/.moonraker_api_key
|
||||
trusted_clients:
|
||||
127.0.0.1
|
||||
$LOCAL_NETWORK
|
||||
::1/128
|
||||
FE80::/10
|
||||
cors_domains:
|
||||
http://*.*
|
||||
http://*.local
|
||||
http://my.mainsail.app
|
||||
https://my.mainsail.app
|
||||
http://app.fluidd.xyz
|
||||
https://app.fluidd.xyz
|
||||
http://$HOSTNAME
|
||||
|
||||
[update_manager]
|
||||
#client_repo:
|
||||
#client_path:
|
||||
MOONRAKERCONF
|
||||
}
|
||||
|
||||
@@ -386,6 +384,7 @@ moonraker_conf_creation(){
|
||||
ip_list+=("$HOSTNAME:$PORT")
|
||||
|
||||
status_msg "Creating moonraker.conf in $MOONRAKER_CONF_LOC"
|
||||
[ ! -d $MOONRAKER_CONF_LOC ] && mkdir -p $MOONRAKER_CONF_LOC
|
||||
if [ ! -f $MOONRAKER_CONF_LOC/moonraker.conf ]; then
|
||||
create_single_moonraker_conf && ok_msg "moonraker.conf created!"
|
||||
else
|
||||
@@ -404,6 +403,7 @@ moonraker_conf_creation(){
|
||||
|
||||
### start the creation of each instance
|
||||
status_msg "Creating moonraker.conf for instance #$INSTANCE"
|
||||
[ ! -d $MOONRAKER_CONF_LOC/printer_$INSTANCE ] && mkdir -p $MOONRAKER_CONF_LOC/printer_$INSTANCE
|
||||
if [ ! -f $MOONRAKER_CONF_LOC/printer_$INSTANCE/moonraker.conf ]; then
|
||||
create_multi_moonraker_conf && ok_msg "moonraker.conf created!"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user