mirror of
https://github.com/x86dev/docker-ttrss
synced 2025-12-20 13:21:30 +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:
@@ -86,22 +86,16 @@ setup_ttrss()
|
|||||||
|
|
||||||
# Make sure the TTRSS protocol is https now.
|
# Make sure the TTRSS protocol is https now.
|
||||||
TTRSS_PROTO=https
|
TTRSS_PROTO=https
|
||||||
|
|
||||||
# Set the default https port if not specified otherwise.
|
|
||||||
if [ -z ${TTRSS_PORT} ]; then
|
|
||||||
TTRSS_PORT=:4443
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If no protocol is specified, use http as default. Not secure, I know.
|
# If no protocol is specified, use http as default. Not secure, I know.
|
||||||
if [ -z ${TTRSS_PROTO} ]; then
|
if [ -z ${TTRSS_PROTO} ]; then
|
||||||
|
|
||||||
TTRSS_PROTO=http
|
TTRSS_PROTO=http
|
||||||
|
|
||||||
# Set the default port if not specified otherwise.
|
|
||||||
if [ -z ${TTRSS_PORT} ]; then
|
|
||||||
TTRSS_PORT=:8080
|
|
||||||
fi
|
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
|
fi
|
||||||
|
|
||||||
# If we've been passed $TTRSS_SELF_URL as an env variable, then use that,
|
# If we've been passed $TTRSS_SELF_URL as an env variable, then use that,
|
||||||
|
|||||||
Reference in New Issue
Block a user