Skip to content

Commit 12a14d7

Browse files
HishamHisham
authored andcommitted
update examples for upstream mapping
1 parent f58c2d1 commit 12a14d7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ for this to work it requires inserting a root CA certificate into system trusted
8888
- Env `AUTH_REGISTRIES_DELIMITER` to change the separator between authentication info. By default, a space: "` `". If you use keys that contain spaces (as with Google Cloud Registry), you should update this variable, e.g. setting it to `AUTH_REGISTRIES_DELIMITER=";;;"`. In that case, `AUTH_REGISTRIES` could contain something like `registry1.com:user1:pass1;;;registry2.com:user2:pass2`.
8989
- Env `AUTH_REGISTRY_DELIMITER` to change the separator between authentication info *parts*. By default, a colon: "`:`". If you use keys that contain single colons, you should update this variable, e.g. setting it to `AUTH_REGISTRIES_DELIMITER=":::"`. In that case, `AUTH_REGISTRIES` could contain something like `registry1.com:::user1:::pass1 registry2.com:::user2:::pass2`.
9090
- Env `UPSTREAM_MAPPING` to configure upstream server mappings (similar in functionality to /etc/hosts entries but with round-robin selection).
91-
Useful when configured resolvers are unable to resolve a host. e.g. `UPSTREAM_MAPPING="registry1=10.0.1.10,10.0.1.11 registry2=5.0.1.10"`
91+
Useful when configured resolvers are unable to resolve a host. e.g. `UPSTREAM_MAPPING="registry1=10.0.1.10:443,10.0.1.11 registry2=5.0.1.10"`
9292
- Timeouts ENVS - all of them can pe specified to control different timeouts, and if not set, the defaults will be the ones from `Dockerfile`. The directives will be added into `http` block.:
9393
- SEND_TIMEOUT : see [send_timeout](http://nginx.org/en/docs/http/ngx_http_core_module.html#send_timeout)
9494
- CLIENT_BODY_TIMEOUT : see [client_body_timeout](http://nginx.org/en/docs/http/ngx_http_core_module.html#client_body_timeout)

entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ else
3939
fi
4040

4141
# Generate nginx upstream blocks into file. Function similar to a /etc/hosts file but includes round-robin selection
42-
# e.g when UPSTREAM_MAPPING="registry1=10.0.1.10,10.0.1.11 registry2=5.0.1.10", the following file is generated
42+
# e.g when UPSTREAM_MAPPING="registry1=10.0.1.10:443,10.0.1.11 registry2=5.0.1.10", the following file is generated
4343
# upstream registry1 {
44-
# server 10.0.1.10;
44+
# server 10.0.1.10:443;
4545
# server 10.0.1.11;
4646
# }
4747
# upstream registry2 {

0 commit comments

Comments
 (0)