2021-11-30 18:20:42 +08:00
|
|
|
{
|
|
|
|
auto_https disable_redirects
|
|
|
|
|
|
|
|
storage file_system {
|
|
|
|
root /mnt/data/caddy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-09 01:12:56 +08:00
|
|
|
{$PROTOCOL}://{$NC_DOMAIN}:{$APACHE_PORT} {
|
2021-11-30 18:20:42 +08:00
|
|
|
|
|
|
|
# Notify Push
|
|
|
|
route /push/* {
|
|
|
|
uri strip_prefix /push
|
2022-06-15 18:42:14 +08:00
|
|
|
reverse_proxy {$NEXTCLOUD_HOST}:7867 {
|
|
|
|
# trusted_proxies placeholder
|
|
|
|
}
|
2021-11-30 18:20:42 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
# Talk
|
|
|
|
route /standalone-signaling/* {
|
|
|
|
uri strip_prefix /standalone-signaling
|
2022-06-15 18:42:14 +08:00
|
|
|
reverse_proxy {$TALK_HOST}:8081 {
|
|
|
|
# trusted_proxies placeholder
|
|
|
|
}
|
2021-11-30 18:20:42 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
# Collabora
|
|
|
|
route /browser/* {
|
2022-06-15 18:42:14 +08:00
|
|
|
reverse_proxy {$COLLABORA_HOST}:9980 {
|
|
|
|
# trusted_proxies placeholder
|
|
|
|
}
|
2021-11-30 18:20:42 +08:00
|
|
|
}
|
|
|
|
route /hosting/* {
|
2022-06-15 18:42:14 +08:00
|
|
|
reverse_proxy {$COLLABORA_HOST}:9980 {
|
|
|
|
# trusted_proxies placeholder
|
|
|
|
}
|
2021-11-30 18:20:42 +08:00
|
|
|
}
|
|
|
|
route /cool/* {
|
2022-06-15 18:42:14 +08:00
|
|
|
reverse_proxy {$COLLABORA_HOST}:9980 {
|
|
|
|
# trusted_proxies placeholder
|
|
|
|
}
|
2021-11-30 18:20:42 +08:00
|
|
|
}
|
|
|
|
|
2022-03-17 17:13:21 +08:00
|
|
|
# Onlyoffice
|
|
|
|
route /onlyoffice/* {
|
|
|
|
uri strip_prefix /onlyoffice
|
2022-03-23 02:34:16 +08:00
|
|
|
reverse_proxy {$ONLYOFFICE_HOST}:80 {
|
|
|
|
header_up X-Forwarded-Host {http.request.host}/onlyoffice
|
2022-05-13 23:14:10 +08:00
|
|
|
header_up X-Forwarded-Proto https
|
2022-06-15 18:42:14 +08:00
|
|
|
# trusted_proxies placeholder
|
2022-03-23 02:34:16 +08:00
|
|
|
}
|
2022-03-17 17:13:21 +08:00
|
|
|
}
|
|
|
|
|
2021-11-30 18:20:42 +08:00
|
|
|
# Nextcloud
|
|
|
|
route {
|
|
|
|
rewrite /.well-known/carddav /remote.php/dav
|
|
|
|
rewrite /.well-known/caldav /remote.php/dav
|
|
|
|
header Strict-Transport-Security max-age=31536000;
|
2022-06-15 18:42:14 +08:00
|
|
|
reverse_proxy localhost:8000 {
|
|
|
|
# See https://github.com/nextcloud/all-in-one/issues/828
|
|
|
|
# trusted_proxies placeholder
|
|
|
|
}
|
2021-11-30 18:20:42 +08:00
|
|
|
}
|
2021-12-08 00:39:30 +08:00
|
|
|
|
|
|
|
# TLS options
|
|
|
|
tls {
|
|
|
|
issuer acme {
|
|
|
|
disable_http_challenge
|
|
|
|
}
|
|
|
|
}
|
2021-11-30 18:20:42 +08:00
|
|
|
}
|