save
This commit is contained in:
parent
b3dba4542f
commit
0c98334d1c
9 changed files with 151 additions and 0 deletions
19
recipes/webdav/nginx.erb
Normal file
19
recipes/webdav/nginx.erb
Normal 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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue