2021-01-19 16:14:10 +00:00
|
|
|
{
|
2022-11-29 15:27:11 +00:00
|
|
|
auto_https disable_redirects
|
2021-01-19 16:14:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
http:// https:// {
|
2023-10-22 17:22:26 +00:00
|
|
|
reverse_proxy {$SEAHUB_SERVER_HOST}:8000 {
|
2022-11-29 15:27:11 +00:00
|
|
|
lb_policy header X-Forwarded-For
|
|
|
|
trusted_proxies private_ranges
|
|
|
|
}
|
2023-10-22 17:22:26 +00:00
|
|
|
reverse_proxy /seafdav* {$SEAFILE_SERVER_HOST}:8080 {
|
2023-06-17 08:37:09 +00:00
|
|
|
header_up Destination https:// http://
|
|
|
|
trusted_proxies private_ranges
|
|
|
|
}
|
2022-11-29 15:27:11 +00:00
|
|
|
handle_path /seafhttp* {
|
|
|
|
uri strip_prefix seafhttp
|
2023-10-22 17:22:26 +00:00
|
|
|
reverse_proxy {$SEAFILE_SERVER_HOST}:8082 {
|
2022-11-29 15:27:11 +00:00
|
|
|
trusted_proxies private_ranges
|
|
|
|
}
|
|
|
|
}
|
2023-06-17 08:37:09 +00:00
|
|
|
handle_path /notification* {
|
|
|
|
uri strip_prefix notification
|
2023-10-22 17:22:26 +00:00
|
|
|
reverse_proxy {$SEAFILE_SERVER_HOST}:8083 {
|
2023-06-17 08:37:09 +00:00
|
|
|
trusted_proxies private_ranges
|
|
|
|
}
|
2022-11-29 15:27:11 +00:00
|
|
|
}
|
2023-10-22 17:22:26 +00:00
|
|
|
reverse_proxy /media/* {$SEAHUB_MEDIA_SERVER_HOST}:80 {
|
2022-11-29 15:27:11 +00:00
|
|
|
lb_policy header X-Forwarded-For
|
|
|
|
trusted_proxies private_ranges
|
2022-11-29 15:04:11 +00:00
|
|
|
}
|
2023-10-22 17:22:26 +00:00
|
|
|
}
|