mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 11:03:34 +00:00
chore(website): configure ingress Caddy as trusted proxy to forward client IPs
This commit is contained in:
@@ -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