To speed up external IP querying with UPnP, upnp.Load(location) with a static UPnP location can be used instead of the default UPnP discovery. The location can be specified in the Caddyfile as ip_source upnp http://192.168.1.1/.... If this endpoint is not specified, then the standard UPnP discovery is used.
When using upnp.Load(location), only HTTP messages are send to the network gateway. Therefore, if Caddy is used inside a docker container, Caddy doesn't need direct access to the host network (--network host).
The location for the Caddyfile can be identified by using upnpc -s (apt install miniupnpc).
To speed up external IP querying with UPnP,
upnp.Load(location)
with a static UPnP location can be used instead of the default UPnP discovery. The location can be specified in the Caddyfile asip_source upnp http://192.168.1.1/...
. If this endpoint is not specified, then the standard UPnP discovery is used.When using
upnp.Load(location)
, only HTTP messages are send to the network gateway. Therefore, if Caddy is used inside a docker container, Caddy doesn't need direct access to the host network (--network host
).The location for the Caddyfile can be identified by using
upnpc -s
(apt install miniupnpc
).