feat: make Docker container port configurable via PORT env var

fix: preserve original filename when downloading processed files
This commit is contained in:
alam00000
2026-04-05 13:44:16 +05:30
parent 2f0d48c01b
commit bfe4e5b663
77 changed files with 127 additions and 126 deletions

View File

@@ -9,6 +9,12 @@ entrypoint_log() {
fi
}
PORT=${PORT:-8080}
if [ "$PORT" != "8080" ]; then
entrypoint_log "Changing Nginx listen port to $PORT"
sed -i "s/listen 8080/listen $PORT/g; s/listen \[::\]:8080/listen [::]:$PORT/g" /etc/nginx/nginx.conf
fi
if [ "$DISABLE_IPV6" = "true" ]; then
entrypoint_log "Disabling the Nginx IPv6 listener"
sed -i '/^[[:space:]]*listen[[:space:]]*\[::\]:[0-9]*/s/^/#/' /etc/nginx/nginx.conf