NGINX WebDAV
Jump to navigation
Jump to search
webdav that could be running in lxd container
location /webdav-busk { client_max_body_size 500M; # root /data/www; client_body_temp_path /data/client_tmp; dav_methods PUT DELETE MKCOL COPY MOVE; create_full_put_path on; dav_access group:rw all:r; # dav_access group:rw all:rw; limit_except GET { auth_basic "Authorized Employees Only"; auth_basic_user_file /etc/nginx/.htpasswd; allow 10.1.1.0/24; allow 127.0.0.0/8; deny all; } }
Bandwidth throttling
upstream app { server host1.example.com max_fails=3 fail_timeout=30s; server host2.example.com max_fails=3 fail_timeout=30s; } server { server_name host.example.com.conf; access_log /var/log/nginx/host.example.com.log main; listen 443 ssl; listen [::]:443 ssl; ssl_certificate /etc/pki/tls/certs/nginx-selfsigned.crt; ssl_certificate_key /etc/pki/tls/private/nginx-selfsigned.key; location / { limit_rate 500k; proxy_pass http://app; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-NginX-Proxy true; } }