mirror of
https://github.com/ggogel/seafile-containerized.git
synced 2024-11-16 17:05:32 +00:00
use header X-Forwarded-For as hash instead of IP
This commit is contained in:
parent
06742af855
commit
79f163cff5
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
http:// https:// {
|
http:// https:// {
|
||||||
reverse_proxy seahub:8000 {
|
reverse_proxy seahub:8000 {
|
||||||
lb_policy ip_hash
|
lb_policy header X-Forwarded-For
|
||||||
}
|
}
|
||||||
handle_path /seafhttp* {
|
handle_path /seafhttp* {
|
||||||
uri strip_prefix seafhttp
|
uri strip_prefix seafhttp
|
||||||
|
@ -12,6 +12,6 @@ http:// https:// {
|
||||||
}
|
}
|
||||||
reverse_proxy /seafdav/* seafile-server:8080
|
reverse_proxy /seafdav/* seafile-server:8080
|
||||||
reverse_proxy /media/* seahub-media:80 {
|
reverse_proxy /media/* seahub-media:80 {
|
||||||
lb_policy ip_hash
|
lb_policy header X-Forwarded-For
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue