Skip to content

Commit

Permalink
fix: trusted_proxy support added to the schema file to allow the vali…
Browse files Browse the repository at this point in the history
…dation of the corresponding property
  • Loading branch information
dadrus committed Jul 22, 2022
1 parent 2595c4f commit ebd1310
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/config/test_data/test_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions schema/config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
},
Expand Down

0 comments on commit ebd1310

Please sign in to comment.