Skip to content

Commit

Permalink
added auth bind
Browse files Browse the repository at this point in the history
  • Loading branch information
jdabat committed Jun 24, 2024
1 parent 3eca578 commit 7b726ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7b726ab

Please sign in to comment.