From 26072dea7eacc0e5a1b1ca3efc2db4a7cf4052ef Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Wed, 10 Nov 2021 15:08:05 +0200 Subject: [PATCH] Add the WebDAV access to the library. --- conf.d/library.shore.co.il.conf | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 conf.d/library.shore.co.il.conf diff --git a/conf.d/library.shore.co.il.conf b/conf.d/library.shore.co.il.conf new file mode 100644 index 0000000..5f61f96 --- /dev/null +++ b/conf.d/library.shore.co.il.conf @@ -0,0 +1,29 @@ +map $host $library { default transmission-webdav; } + +server { + listen 80; + listen [::]:80; + server_name library.shore.co.il; + include snippets/robots-disallow-all.conf; + include snippets/ads-txt.conf; + include snippets/security-txt.conf; + include snippets/www-acme-challenge.conf; + include snippets/redirect-https.conf; +} + +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + server_name library.shore.co.il; + include snippets/robots-disallow-all.conf; + include snippets/ads-txt.conf; + include snippets/security-txt.conf; + include snippets/ssl.conf; + include snippets/ldap-auth.conf; + + location / { + proxy_pass http://$library:80; + proxy_http_version 1.1; + include snippets/proxy-headers.conf; + } +} -- GitLab