mirror of
https://github.com/ggogel/seafile-containerized.git
synced 2024-11-16 09:01:38 +00:00
31 lines
1,008 B
Caddyfile
31 lines
1,008 B
Caddyfile
{
|
|
auto_https disable_redirects
|
|
}
|
|
|
|
http:// https:// {
|
|
reverse_proxy {$SEAHUB_SERVER_HOST}:8000 {
|
|
lb_policy header X-Forwarded-For
|
|
trusted_proxies private_ranges
|
|
}
|
|
reverse_proxy /seafdav* {$SEAFILE_SERVER_HOST}:8080 {
|
|
header_up Destination https:// http://
|
|
trusted_proxies private_ranges
|
|
}
|
|
handle_path /seafhttp* {
|
|
uri strip_prefix seafhttp
|
|
reverse_proxy {$SEAFILE_SERVER_HOST}:8082 {
|
|
trusted_proxies private_ranges
|
|
}
|
|
}
|
|
handle_path /notification* {
|
|
uri strip_prefix notification
|
|
reverse_proxy {$SEAFILE_SERVER_HOST}:8083 {
|
|
trusted_proxies private_ranges
|
|
}
|
|
}
|
|
reverse_proxy /media/* {$SEAHUB_MEDIA_SERVER_HOST}:80 {
|
|
lb_policy header X-Forwarded-For
|
|
trusted_proxies private_ranges
|
|
}
|
|
}
|