main
Ricard Illa 2022-03-07 16:57:07 +01:00
parent 886a6c768a
commit 22da4e153e
No known key found for this signature in database
GPG Key ID: F69A672B72E54902
3 changed files with 60 additions and 0 deletions

6
webdav/Dockerfile Normal file
View File

@ -0,0 +1,6 @@
FROM alpine:3.15
RUN apk add --no-cache nginx nginx-mod-http-dav-ext
COPY nginx.conf /etc/nginx/nginx.conf
CMD ["nginx", "-g", "daemon off;"]

22
webdav/Makefile Normal file
View File

@ -0,0 +1,22 @@
IMG_NAME = webdav
REGISTRY=registry.monotremata.xyz
IMG=$(REGISTRY)/$(IMG_NAME)
PLATFORMS=linux/amd64,linux/arm64
.PHONY: build build-nc push
build: Dockerfile
docker build -t $(IMG) .
buildx: Dockerfile
docker buildx build \
--platform $(PLATFORMS) \
--tag $(IMG) \
--push \
.
push: build
docker image push $(IMG)
build-nc: Dockerfile
docker build --no-cache -t $(IMG) .

32
webdav/nginx.conf Normal file
View File

@ -0,0 +1,32 @@
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log notice;
pid /var/run/nginx.pid;
include /etc/nginx/modules/*.conf;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
#gzip on;
include /etc/nginx/conf.d/*.conf;
}