Add webdav domain
This commit is contained in:
1 parent
263dc9e9e8
commit
6af043dda9
2 files changed
+28
No files matched your search
@@ -77,6 +77,7 @@ services:
|
||||
volumes:
|
||||
- ./nginx:/etc/nginx:ro
|
||||
- /data/site:/data/site:ro
|
||||
- /data/webdav:/data/webdav:rw
|
||||
- nginx:/var/cache/nginx/
|
||||
networks:
|
||||
- karakeep
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user