Add Caddyfile for NextCloud
This commit is contained in:
commit
fad50836aa
27
webhosts/cloud/Caddyfile
Executable file
27
webhosts/cloud/Caddyfile
Executable 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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user