diff --git a/internal/config/test_data/test_config.yaml b/internal/config/test_data/test_config.yaml index 93e50e415..a96b86dff 100644 --- a/internal/config/test_data/test_config.yaml +++ b/internal/config/test_data/test_config.yaml @@ -2,8 +2,12 @@ serve: api: port: 4468 verbose_errors: true + trusted_proxies: + - 0.0.0.0/0 proxy: port: 4469 + trusted_proxies: + - 0.0.0.0/0 log: level: debug diff --git a/schema/config.schema.json b/schema/config.schema.json index ca2687ad8..11fc7dc03 100644 --- a/schema/config.schema.json +++ b/schema/config.schema.json @@ -184,6 +184,13 @@ }, "tls": { "$ref": "#/definitions/tlsConfig" + }, + "trusted_proxies": { + "description": "The list IPs or CIDRs heimdall should trust and thus make use of headers, like X-Forwarded-*, Forwarded, etc", + "type": "array", + "items": { + "type": "string" + } } } },