mirror of
https://github.com/TheBinaryNinja/tvapp2.git
synced 2026-06-04 14:05:41 -04:00
feat: add gateway and server address ip / port to console on startup
This commit is contained in:
@@ -8,9 +8,12 @@
|
|||||||
copy the links to the m3u and EPG files; and add them to your favorite IPTV app
|
copy the links to the m3u and EPG files; and add them to your favorite IPTV app
|
||||||
such as Jellyfin, Plex, or Emby.
|
such as Jellyfin, Plex, or Emby.
|
||||||
|
|
||||||
For more information about this project; visit the links below:
|
For more information about this project; visit the links below. This app is
|
||||||
|
served on multiple repositories as backup. Use any of the repo links below:
|
||||||
|
|
||||||
TVApp2 Repo https://git.binaryninja.net/pub_projects/tvapp2
|
TVApp2 Repo 1 https://github.com/iFlip721/tvapp2
|
||||||
|
TVApp2 Repo 2 https://github.com/Aetherinox/tvapp2
|
||||||
|
TVApp2 Repo 3 https://git.binaryninja.net/pub_projects/tvapp2
|
||||||
Base Alpine Image https://github.com/Aetherinox/docker-base-alpine
|
Base Alpine Image https://github.com/Aetherinox/docker-base-alpine
|
||||||
|
|
||||||
If you are making this container available on a public-facing domain,
|
If you are making this container available on a public-facing domain,
|
||||||
|
|||||||
@@ -4,6 +4,9 @@
|
|||||||
PUID=${PUID:-911}
|
PUID=${PUID:-911}
|
||||||
PGID=${PGID:-911}
|
PGID=${PGID:-911}
|
||||||
|
|
||||||
|
IP_GATEWAY=$(/sbin/ip route|awk '/default/ { print $3 }')
|
||||||
|
IP_CONTAINER=$(ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1')
|
||||||
|
|
||||||
if [[ -z ${TVAPP_READ_ONLY_FS} ]] && [[ -z ${TVAPP_NON_ROOT_USER} ]]; then
|
if [[ -z ${TVAPP_READ_ONLY_FS} ]] && [[ -z ${TVAPP_NON_ROOT_USER} ]]; then
|
||||||
groupmod -o -g "$PGID" dockerx
|
groupmod -o -g "$PGID" dockerx
|
||||||
usermod -o -u "$PUID" dockerx
|
usermod -o -u "$PUID" dockerx
|
||||||
@@ -21,7 +24,9 @@ echo " User:Group $(id -u dockerx):$(id -g dockerx)"
|
|||||||
else
|
else
|
||||||
echo " User:Group $(stat /run -c %u):$(stat /run -c %g)"
|
echo " User:Group $(stat /run -c %u):$(stat /run -c %g)"
|
||||||
fi
|
fi
|
||||||
echo " (Ports) HTTP/HTTPS $(echo $PORT_HTTP)"
|
echo " Port(s) $(echo $PORT_HTTP)"
|
||||||
|
echo " Gateway $(echo $IP_GATEWAY)"
|
||||||
|
echo " Web Server $(echo $IP_CONTAINER:$PORT_HTTP)"
|
||||||
echo ""
|
echo ""
|
||||||
echo '──────────────────────────────────────────────────────────────────────────────────────────'
|
echo '──────────────────────────────────────────────────────────────────────────────────────────'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user