Commit 26072dea authored by nimrod's avatar nimrod
Browse files

Add the WebDAV access to the library.

parent 6bd7b90f
Loading
Loading
Loading
Loading
+29 −0
Original line number Diff line number Diff line
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;
    }
}