diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-11-07 16:46:14 +0300 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-11-07 16:46:14 +0300 |
commit | 717d263caad97c7f4eeca568640973bfec83176c (patch) | |
tree | 45a8a4b9d6312485358dc6b581faa71d97bc8e0e /webdav-apache-php8.0 | |
parent | 5363c606d536d489081c811099341b4256e3ebe8 (diff) |
Add 8.0 versions of more recepies for the drone run of server master
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'webdav-apache-php8.0')
-rw-r--r-- | webdav-apache-php8.0/Dockerfile | 29 | ||||
-rw-r--r-- | webdav-apache-php8.0/webdav.conf | 15 |
2 files changed, 44 insertions, 0 deletions
diff --git a/webdav-apache-php8.0/Dockerfile b/webdav-apache-php8.0/Dockerfile new file mode 100644 index 0000000..2cfdc4b --- /dev/null +++ b/webdav-apache-php8.0/Dockerfile @@ -0,0 +1,29 @@ +FROM ghcr.io/nextcloud/continuous-integration-php8.0:latest + +RUN apt-get update +RUN apt-get install -y apache2 apache2-utils +RUN a2enmod dav dav_fs +RUN a2dissite 000-default + +ENV APACHE_RUN_USER www-data +ENV APACHE_RUN_GROUP www-data +ENV APACHE_LOG_DIR /var/log/apache2 +ENV APACHE_PID_FILE /var/run/apache2.pid +ENV APACHE_LOCK_DIR /var/lock/apache2 +ENV APACHE_RUN_DIR /var/run/apache2 + +RUN mkdir -p /var/lock/apache2; chown www-data /var/lock/apache2 +RUN mkdir -p /var/webdav; chown www-data /var/webdav + +ADD webdav.conf /etc/apache2/sites-available/webdav.conf +RUN a2ensite webdav + +RUN htpasswd -cb /etc/apache2/webdav.password test pass +RUN chown root:www-data /etc/apache2/webdav.password +RUN chmod 640 /etc/apache2/webdav.password + +RUN apt-get autoremove -y && \ + apt-get autoclean && \ + apt-get clean && \ + rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/* + diff --git a/webdav-apache-php8.0/webdav.conf b/webdav-apache-php8.0/webdav.conf new file mode 100644 index 0000000..05929f3 --- /dev/null +++ b/webdav-apache-php8.0/webdav.conf @@ -0,0 +1,15 @@ +Alias /webdav /var/webdav/ +<Location /webdav/> + DAV on + Options +Indexes + AuthType Basic + AuthName "webdav" + AuthUserFile /etc/apache2/webdav.password + Require valid-user +</Location> + +<Directory /var/webdav/> + Options Indexes FollowSymLinks + AllowOverride None + Require all granted +</Directory> |