Add CDN dependency download script and update Dockerfiles for offline web UI

This commit is contained in:
Sergey Krashevich
2026-02-16 04:50:24 +03:00
parent 01c7451556
commit 73c43dbf8b
5 changed files with 153 additions and 10 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/bin/sh
# Entrypoint wrapper for go2rtc Docker container.
# If /var/www/go2rtc exists (CDN files bundled), automatically
# configures static_dir to serve web UI without internet access.
if [ -d /var/www/go2rtc ]; then
exec go2rtc \
-config '{"api":{"static_dir":"/var/www/go2rtc"}}' \
-config /config/go2rtc.yaml \
"$@"
else
exec go2rtc -config /config/go2rtc.yaml "$@"
fi