From 69060cda334fb8e8b6e08d71665c63e13cfdc095 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Thu, 7 Jan 2021 23:32:39 +0100 Subject: Docker: Environment variable to change Apache port (#3343) #fix https://github.com/FreshRSS/FreshRSS/issues/3341 New environment variable `LISTEN='0.0.0.0:8080'` ``` docker run -d --network host --uts host -e LISTEN='0.0.0.0:8080' -e TZ=Europe/Paris --name freshrss freshrss/freshrss ``` --- Docker/entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Docker/entrypoint.sh') diff --git a/Docker/entrypoint.sh b/Docker/entrypoint.sh index 63126aa25..a0cf3be15 100755 --- a/Docker/entrypoint.sh +++ b/Docker/entrypoint.sh @@ -9,6 +9,10 @@ find /etc/php*/ -name php.ini -exec sed -r -i "\\#^;?date.timezone#s#^.*#date.ti find /etc/php*/ -name php.ini -exec sed -r -i "\\#^;?post_max_size#s#^.*#post_max_size = 32M#" {} \; find /etc/php*/ -name php.ini -exec sed -r -i "\\#^;?upload_max_filesize#s#^.*#upload_max_filesize = 32M#" {} \; +if [ -n "$LISTEN" ]; then + find /etc/apache2/ -name FreshRSS.Apache.conf -exec sed -r -i "\\#^Listen#s#^.*#Listen $LISTEN#" {} \; +fi + if [ -n "$CRON_MIN" ]; then ( echo "export TZ=$TZ" -- cgit v1.2.3