28 lines
984 B
Plaintext
28 lines
984 B
Plaintext
server {
|
|
# SSL configuration
|
|
listen 443 ssl;
|
|
listen [::]:443 ssl;
|
|
http2 on;
|
|
|
|
server_name webdav.loadingm.xyz;
|
|
acme_certificate letsencrypt;
|
|
ssl_certificate $acme_certificate;
|
|
ssl_certificate_key $acme_certificate_key;
|
|
ssl_certificate_cache max=2;
|
|
root /data/webdav;
|
|
|
|
# Security / XSS Mitigation Headers
|
|
add_header X-Content-Type-Options "nosniff";
|
|
|
|
# Permissions policy. May cause issues with some clients
|
|
add_header Permissions-Policy "accelerometer=(), ambient-light-sensor=(), battery=(), bluetooth=(), camera=(), clipboard-read=(), display-capture=(), document-domain=(), encrypted-media=(), gamepad=(), geolocation=(), gyroscope=(), hid=(), idle-detection=(), interest-cohort=(), keyboard-map=(), local-fonts=(), magnetometer=(), microphone=(), payment=(), publickey-credentials-get=(), serial=(), sync-xhr=(), usb=(), xr-spatial-tracking=()" always;
|
|
|
|
# location /main {
|
|
|
|
# }
|
|
|
|
location / {
|
|
try_files =404;
|
|
}
|
|
}
|