mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-01-02 20:11:59 +08:00
2dbd3a5f71
customize collabora a bit
48 lines
980 B
Caddyfile
48 lines
980 B
Caddyfile
{
|
|
auto_https disable_redirects
|
|
|
|
storage file_system {
|
|
root /mnt/data/caddy
|
|
}
|
|
}
|
|
|
|
{$PROTOCOL}://{$NC_DOMAIN}:{$APACHE_PORT} {
|
|
|
|
# Notify Push
|
|
route /push/* {
|
|
uri strip_prefix /push
|
|
reverse_proxy {$NEXTCLOUD_HOST}:7867
|
|
}
|
|
|
|
# Talk
|
|
route /standalone-signaling/* {
|
|
uri strip_prefix /standalone-signaling
|
|
reverse_proxy {$TALK_HOST}:8081
|
|
}
|
|
|
|
# Collabora
|
|
route /browser/* {
|
|
reverse_proxy {$COLLABORA_HOST}:9980
|
|
}
|
|
route /hosting/* {
|
|
reverse_proxy {$COLLABORA_HOST}:9980
|
|
}
|
|
route /cool/* {
|
|
reverse_proxy {$COLLABORA_HOST}:9980
|
|
}
|
|
|
|
# Nextcloud
|
|
route {
|
|
rewrite /.well-known/carddav /remote.php/dav
|
|
rewrite /.well-known/caldav /remote.php/dav
|
|
header Strict-Transport-Security max-age=31536000;
|
|
reverse_proxy localhost:80
|
|
}
|
|
|
|
# TLS options
|
|
tls {
|
|
issuer acme {
|
|
disable_http_challenge
|
|
}
|
|
}
|
|
}
|