Skip to main content

Runtime Flags

Runtime FlagDescriptionTypeDefault
Match Any Incoming PortMatches incoming HTTP requests on any port for a From URL that does not specify a port.Booleantrue

Match Any Incoming Port

The Match Any Incoming Port runtime flag instructs Pomerium to match requests on any port for From URLs that do not specify a port in the URL. If the port is specified in the From URL, Pomerium will only match requests on that exact port. This is the default route matching behavior.

If you disable this runtime flag, Pomerium will match incoming requests on port 443 by default unless you specify a port in the From URL.

info

See the From URL reference page for more information about how to configure From URLs.

How to Configure

Config file keysEnvironment variablesTypeDefault
match_any_incoming_portMATCH_ANY_INCOMING_PORTstringtrue

Examples

With a From URL that does not specify an explicit port:

from: https://example.com

Pomerium will match the From URL with incoming requests on any port:

https://www.example.com

https://www.example.com:443

https://www.example.com:8443

https://www.example.com:18443

If you disable this runtime flag and do not specify a port in the From URL, Pomerium will match the incoming request on port :443, the default listening port.

https://www.example.com:443