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
```
This commit is contained in:
Alexandre Alapetite
2021-01-07 23:32:39 +01:00
committed by GitHub
parent 85cbfcedb5
commit 69060cda33
6 changed files with 9 additions and 0 deletions

View File

@@ -51,6 +51,7 @@ ENV COPY_LOG_TO_SYSLOG On
ENV COPY_SYSLOG_TO_STDERR On
ENV CRON_MIN ''
ENV FRESHRSS_ENV ''
ENV LISTEN ''
ENTRYPOINT ["./Docker/entrypoint.sh"]

View File

@@ -47,6 +47,7 @@ ENV COPY_LOG_TO_SYSLOG On
ENV COPY_SYSLOG_TO_STDERR On
ENV CRON_MIN ''
ENV FRESHRSS_ENV ''
ENV LISTEN ''
ENTRYPOINT ["./Docker/entrypoint.sh"]

View File

@@ -51,6 +51,7 @@ ENV COPY_LOG_TO_SYSLOG On
ENV COPY_SYSLOG_TO_STDERR On
ENV CRON_MIN ''
ENV FRESHRSS_ENV ''
ENV LISTEN ''
ENTRYPOINT ["./Docker/entrypoint.sh"]

View File

@@ -47,6 +47,7 @@ ENV COPY_LOG_TO_SYSLOG On
ENV COPY_SYSLOG_TO_STDERR On
ENV CRON_MIN ''
ENV FRESHRSS_ENV ''
ENV LISTEN ''
ENTRYPOINT ["./Docker/entrypoint.sh"]

View File

@@ -63,6 +63,7 @@ ENV COPY_LOG_TO_SYSLOG On
ENV COPY_SYSLOG_TO_STDERR On
ENV CRON_MIN ''
ENV FRESHRSS_ENV ''
ENV LISTEN ''
ENTRYPOINT ["./Docker/entrypoint.sh"]

View File

@@ -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"