mirror of
https://github.com/psviderski/uncloud.git
synced 2026-10-06 13:18:58 +00:00
chore(website): configure ingress Caddy as trusted proxy to forward client IPs
This commit is contained in:
1 parent
4d76dd601c
commit
b9c54f1ff5
1 file changed
+5
@@ -1,5 +1,10 @@
|
|||||||
{
|
{
|
||||||
admin off
|
admin off
|
||||||
|
servers {
|
||||||
|
# Trust the Uncloud ingress Caddy (cluster network) so the X-Forwarded-For chain it forwards
|
||||||
|
# is preserved and the real client IP is logged in the client_ip field.
|
||||||
|
trusted_proxies static 10.210.0.0/16
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
:8000 {
|
:8000 {
|
||||||
|
|||||||
Reference in new issue
Block a user