Add Caddyfile for NextCloud

This commit is contained in:
Johanna Dorothea Reichmann 2019-03-30 10:52:45 +01:00 committed by jreichmann
commit fad50836aa
Signed by untrusted user who does not match committer: transcaffeine
GPG Key ID: 03624C433676E465

27
webhosts/cloud/Caddyfile Executable file
View File

@ -0,0 +1,27 @@
https://cloud.finallycoffee.eu {
tls /tls_certs/finallycoffee.eu/fullchain.pem /tls_certs/finallycoffee.eu/privkey.pem
header / {
Referrer-Policy no-referrer
Strict-Transport-Security "max-age=15552000;"
}
redir 301 {
/.well-known/carddav /remote.php/dav
/.well-known/caldav /remote.php/dav
}
proxy / nextcloud:80 {
transparent
websocket
}
}
https://office.cloud.finallycoffee.eu {
tls /tls_certs/finallycoffee.eu/fullchain.pem /tls_certs/finallycoffee.eu/privkey.pem
header / {
Access-Control-Allow-Origin *
}
proxy / onlyoffice-documentserver:80 {
transparent
websocket
}
}