mirror of
https://github.com/deunix-educ/mediadeck.git
synced 2026-11-25 04:39:42 +01:00
27c8eeb37c
Optional plain HTTP port next to HTTPS (server.http_port, off by default): - open_sites()/serve() replace web.run_app: one AppRunner, two TCPSites, so the tablet picks https://<ip>:8765 or http://<ip>:8766 without a restart - http_port requires TLS and must differ from port (validated in config.py) - make http-on / http-off (--http-port N) write or remove the line, restoring the file if the result is invalid; make firewall accepts HTTP_PORT - make url prints both addresses and QR codes QR codes page (make qr, --qr): - self-contained HTML written with mode 600 in $XDG_RUNTIME_DIR and opened as file://, never served: the codes contain the access token - qrencode SVG with crispEdges (no seams between modules), fr/en from LANG - cards for HTTPS, HTTP and the CA certificate, depending on the config Tests: 107 (dual listeners with the local CA, set_http_port, QR page content and file mode). Docs: README fr/en and CLAUDE.md updated. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>