aboutsummaryrefslogtreecommitdiff
path: root/Docker/entrypoint.sh
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2021-01-07 23:32:39 +0100
committerGravatar GitHub <noreply@github.com> 2021-01-07 23:32:39 +0100
commit69060cda334fb8e8b6e08d71665c63e13cfdc095 (patch)
treeaee451201fd80ed8252afca0c7892726c306165d /Docker/entrypoint.sh
parent85cbfcedb50b3a579d13697b4ec27c87450f68a7 (diff)
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 ```
Diffstat (limited to 'Docker/entrypoint.sh')
-rwxr-xr-xDocker/entrypoint.sh4
1 files changed, 4 insertions, 0 deletions
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"