-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enh: Add image to run tests against webdav provided by apache
Signed-off-by: Ferdinand Thiessen <[email protected]>
- Loading branch information
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM httpd:alpine | ||
|
||
# Create webdav directory | ||
RUN mkdir -p /usr/local/apache2/webdav; chown www-data /usr/local/apache2/webdav | ||
# Copy config | ||
COPY ./webdav.conf /usr/local/apache2/conf/webdav.conf | ||
# Add password file | ||
RUN /usr/local/apache2/bin/htpasswd -cb /usr/local/apache2/webdav.password test pass | ||
RUN chown root:www-data /usr/local/apache2/webdav.password | ||
RUN chmod 640 /usr/local/apache2/webdav.password | ||
# Enable config | ||
RUN echo "Include conf/webdav.conf" >> /usr/local/apache2/conf/httpd.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
LoadModule dav_module modules/mod_dav.so | ||
LoadModule dav_fs_module modules/mod_dav_fs.so | ||
|
||
Alias /webdav /usr/local/apache2/webdav | ||
|
||
<Location /webdav/> | ||
DAV on | ||
Options +Indexes | ||
AuthType Basic | ||
AuthName "webdav" | ||
AuthUserFile /usr/local/apache2/webdav.password | ||
Require valid-user | ||
</Location> | ||
|
||
<Directory /usr/local/apache2/webdav> | ||
Options Indexes FollowSymLinks | ||
AllowOverride None | ||
Require all granted | ||
</Directory> |