Troubleshooting / Code Unable to Access Specific Domain
In some cases, certain domains do not have DNS resolution and require modifying the hosts file before access is possible. This can be achieved by adding extra_hosts
content to the server
and all worker-xxx
services in the docker-stack.yaml
.
The docker-stack.yaml
file is located on the host machine at {DataFlux Func (Automata) installation directory}/docker-stack.yaml
.
server
and all worker-xxx
must include this configuration; do not omit
The specific modification section is as follows:
YAML | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
|
After adding the above configuration, it is equivalent to configuring the following content in /etc/hosts
:
Text Only | |
---|---|
1 2 |
|
After modifying the configuration, please restart DataFlux Func (Automata)