This commit is contained in:
Artur Gurgul 2025-08-01 20:11:48 +02:00
parent b3dba4542f
commit 0c98334d1c
9 changed files with 151 additions and 0 deletions

19
recipes/webdav/nginx.erb Normal file
View file

@ -0,0 +1,19 @@
server {
listen 443 ssl;
server_name drive.gurgul.pro;
ssl_certificate /etc/letsencrypt/live/gurgul.pro/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/gurgul.pro/privkey.pem;
location / {
proxy_pass http://unix:/run/webdav.sock:/;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass_request_headers on;
client_max_body_size 2G;
}
}