Add description to TrustedProxy

Allow IPs and Domain Names or CloudFlare and provide example.

PrplHaz4 committed Feb 23, 2022 at 09:50 UTC 400bc4d073dca0e212d36e589214528c32250300
1 file changed +1 -1
meshcentral-config-schema.json
+1 -1
@@ -152,7 +152,7 @@
152 "required": [ "name", "info" ]
153 },
154 "tlsOffload": { "type": [ "boolean", "string" ], "default": false, "description": "When true, indicates that a TLS offloader is in front of the MeshCentral server. More typically, set this to the IP address of the reverse proxy or TLS offloader so that IP forwarding headers will be trusted. For example: \"127.0.0.1,192.168.1.100\"." },
155 - "trustedProxy": { "type": "string" },
155 + "trustedProxy": { "type": "string", "default": null, "description": "Trust forwarded headers from these IPs or domains. Providing the magic string \"CloudFlare\" will cause the server to download the IP address list of trusted CloudFlare proxies directly from CloudFlare on each server start. For example: \"127.0.0.1,proxy.example.com,CloudFlare\"." },
156 "mpsPort": { "type": "integer", "minimum": 1, "maximum": 65535 },
157 "mpsPortBind": { "type": "string" },
158 "mpsAliasPort": { "type": "integer", "minimum": 1, "maximum": 65535 },