1
0
mirror of https://github.com/x86dev/docker-ttrss synced 2025-12-13 09:56:02 +00:00

setup-ttrss.sh: Don't force setting a website port by default (can be specified by environment variable TTRSS_PORT).

This commit is contained in:
x86dev
2017-07-28 23:13:29 +02:00
parent ab7dc0eeae
commit 4a6bfa584b

View File

@@ -86,22 +86,16 @@ setup_ttrss()
# Make sure the TTRSS protocol is https now.
TTRSS_PROTO=https
# Set the default https port if not specified otherwise.
if [ -z ${TTRSS_PORT} ]; then
TTRSS_PORT=:4443
fi
fi
# If no protocol is specified, use http as default. Not secure, I know.
if [ -z ${TTRSS_PROTO} ]; then
TTRSS_PROTO=http
fi
# Set the default port if not specified otherwise.
if [ -z ${TTRSS_PORT} ]; then
TTRSS_PORT=:8080
fi
# Add a leading colon (for the final URL) if a custom port is set.
if [ -n "$TTRSS_PORT" ]; then
TTRSS_PORT=:${TTRSS_PORT}
fi
# If we've been passed $TTRSS_SELF_URL as an env variable, then use that,