Serve web mixer at http://radxa-mixer.local on port 80
install.sh now sets the hostname (default radxa-mixer, --hostname or --keep-hostname to override) after a successful install so Avahi advertises NAME.local, and the web mixer listens on port 80. The web server's host check already accepts HOSTNAME.local. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -14,7 +14,7 @@ cat > /etc/systemd/system/radxa-mixer-web.service <<'UNIT'
|
||||
Description=Radxa wireless audio mixer web interface
|
||||
After=network.target bluetooth.service shairport-sync.service bluealsa.service
|
||||
[Service]
|
||||
ExecStart=/usr/bin/python3 /usr/local/lib/radxa-mixer/web_server.py --port 8088
|
||||
ExecStart=/usr/bin/python3 /usr/local/lib/radxa-mixer/web_server.py --port 80
|
||||
Restart=on-failure
|
||||
RestartSec=3
|
||||
UMask=0022
|
||||
@@ -25,4 +25,4 @@ UNIT
|
||||
systemctl daemon-reload
|
||||
systemctl enable --now radxa-mixer-web
|
||||
systemctl restart radxa-mixer-web
|
||||
echo '웹 믹서: http://보드IP:8088'
|
||||
echo "웹 믹서: http://$(hostname).local 또는 http://보드IP"
|
||||
|
||||
@@ -139,7 +139,7 @@ class Handler(BaseHTTPRequestHandler):
|
||||
|
||||
|
||||
def main():
|
||||
parser=argparse.ArgumentParser();parser.add_argument('--host',default='0.0.0.0');parser.add_argument('--port',type=int,default=8088)
|
||||
parser=argparse.ArgumentParser();parser.add_argument('--host',default='0.0.0.0');parser.add_argument('--port',type=int,default=80)
|
||||
args=parser.parse_args()
|
||||
server=ThreadingHTTPServer((args.host,args.port),Handler)
|
||||
server.daemon_threads=True
|
||||
|
||||
Reference in New Issue
Block a user