debian: change config file

- allow all of client
This commit is contained in:
2025-06-04 11:34:14 +09:00
parent ab9a35e327
commit c276c77cc0
4 changed files with 10 additions and 22 deletions

1
debian/control vendored
View File

@@ -28,5 +28,6 @@ Depends: ${python3:Depends},
libjpeg-dev, libjpeg-dev,
packagekit, packagekit,
wireless-tools, wireless-tools,
klipper,
Description: Web API Server for Klipper Description: Web API Server for Klipper
... ...

1
debian/moonraker.install vendored Normal file
View File

@@ -0,0 +1 @@
moonraker.conf /var/printer_data/config/

View File

@@ -1,22 +0,0 @@
#!/bin/sh
DATADIR="/var/printer_data"
CONFIG_PATH="${DATADIR}/config/moonraker.conf"
LOCAL_DOMAIN=$(ip route | awk '/default/ {print $3}' | awk -F'.' '{print $1 "." $2 "." $3 "." 0}')
[ -z "${LOCAL_DOMAIN}" ] && LOCAL_DOMAIN="192.168.0.0"
cat>${CONFIG_PATH}<<__EOF
[server]
host: 0.0.0.0
port: 7125
enable_debug_logging: True
klippy_uds_address: /tmp/klipper.sock
[authorization]
enabled: True
trusted_clients:
${LOCAL_DOMAIN}/24
__EOF
#DEBHELPER#

8
moonraker.conf Normal file
View File

@@ -0,0 +1,8 @@
[server]
host: 0.0.0.0
port: 7125
klippy_uds_address: /tmp/klipper.sock
[authorization]
trusted_clients:
0.0.0.0/0