From 7b726ab8fae7f538a0577a5ea9da14a3add3471b Mon Sep 17 00:00:00 2001 From: Jihad Abu Dabat Date: Mon, 24 Jun 2024 10:06:05 +0000 Subject: [PATCH] added auth bind --- Dockerfile | 5 ++++- src/supervisord.conf | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 35f3136..dfec6dd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM nextcloud:29.0.1 AS base USER root -RUN apt-get update && apt-get install -y sudo git p7zip p7zip-full libmagickcore-6.q16-6-extra wget +RUN apt-get update && apt-get install -y sudo git p7zip p7zip-full libmagickcore-6.q16-6-extra wget authbind RUN git clone https://github.com/remicollet/php-rar.git \ && cd php-rar && git checkout 02331ca \ @@ -33,6 +33,9 @@ RUN mkdir /usr/nextcloud/ RUN chown www-data:www-data /usr/nextcloud/ ENV APACHE_RUN_GROUP=www-data ENV APACHE_RUN_USER=www-data +RUN touch /etc/authbind/byport/80 /etc/authbind/byport/443 \ + && chown www-data /etc/authbind/byport/80 /etc/authbind/byport/443 \ + && chmod 755 /etc/authbind/byport/80 /etc/authbind/byport/443 FROM base AS production diff --git a/src/supervisord.conf b/src/supervisord.conf index a5a1fdc..a7cfc9d 100644 --- a/src/supervisord.conf +++ b/src/supervisord.conf @@ -12,7 +12,7 @@ stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 stderr_logfile=/dev/stderr stderr_logfile_maxbytes=0 -command=apache2-foreground +command=authbind --deep apache2-foreground [program:cron] stdout_logfile=/dev/stdout