You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a remote docker host from `DOCKER_HOST` auto-proxy assumes the detected containers are not on the same network as SWAG:
62
62
63
63
* If the detected containers do not have the `swag_address` label set then the Host IP will be used.
64
-
* If the detected containers do not have the `swag_port` label set then auto-proxy attempts to find a mapped **host port** on the container and will use it based on **container port** in this order:
64
+
* If the detected containers do not have the `swag_port` label set then auto-proxy looks for exposed **container ports** and uses the corresponding **host port** as the upstream port. Container ports are checked in this order:
65
65
* 80
66
66
* 8080
67
67
* The first mapped port, if any
@@ -70,29 +70,29 @@ When using a remote docker host from `DOCKER_HOST` auto-proxy assumes the detect
70
70
71
71
If a detected container does not have the `swag_url` label set then the subdomain and TLD can be programmatically generated.
72
72
73
-
The default TLD used in nginx [`server_name` directive](https://nginx.org/en/docs/http/server_names.html) can be set using `HOST_TLD`. This can also be set per-host using the syntax described in [`DOCKER_HOST` for `default_tld`.](#multiple-hosts)
73
+
The default TLD used in nginx [`server_name` directive](https://nginx.org/en/docs/http/server_names.html) can be set using `AUTO_PROXY_HOST_TLD`. This can also be set per-host using the syntax described in [`DOCKER_HOST` for `default_tld`.](#multiple-hosts)
74
74
75
-
The subdomain used for a container can optionally be modified to include the Host's `friendly_name` described in the `DOCKER_HOST` syntax by setting `HOST_INSERT` to either `prefix` or `suffix`
75
+
The subdomain used for a container can optionally be modified to include the Host's `friendly_name` described in the `DOCKER_HOST` syntax by setting `AUTO_PROXY_HOST_INSERT` to either `prefix` or `suffix`
76
76
77
77
Examples using a container named `overseer`:
78
78
79
-
* Using only HOST_INSERT to modify subdomain
79
+
* Using only AUTO_PROXY_HOST_INSERT to modify subdomain
80
80
* `DOCKER_HOST=192.168.0.100:2375|serverA`
81
-
* `HOST_TLD` (not set, defaults to `*`)
82
-
* `HOST_INSERT`
81
+
* `AUTO_PROXY_HOST_TLD` (not set, defaults to `*`)
0 commit comments