-
I run both gateway and agent in docker container, and gateway is reverse-proxyed by traefik. Now that gateway and agent are connected in docker internal network, it would be convenient to connect from agent to gateway directly on port 80. Currently, this will result an error on agent: Unable to connect to the gateway: E-UnableToUpgrade, Error(404) |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
There may be a configuration issue. Could you please verify the following statuses:
If you can confirm the above questions, could you please provide a sample configuration (with domain names and secrets hidden) and run these components using |
Beta Was this translation helpful? Give feedback.
-
Hi, I forgot to mention that my narrowlink setup works properly as per the documentation, except that instead of of having lines: gateway: mydomain.com:443 in the agent config file, I want these lines: narrowlink-gateway-container:80 to work too.
Could this be the cause? Because in my agent config file the domain is the gateway container name, while in the gateway config file
Yes, 404 with a line "Powered By Narrowlink"
It actually works if I put the real domain name in the agent config file.
|
Beta Was this translation helpful? Give feedback.
-
Hello
Yes, as defined here: https://github.com/narrowlink/narrowlink/blob/main/gateway/src/service/ws.rs#L138-L139 |
Beta Was this translation helpful? Give feedback.
-
My files are: docker-compose.yaml:
narrowlink/gateway/Dockerfile:
narrowlink/gateway/config.yaml:
narrowlink/agent/Dockerfile:
narrowlink/agent/config.yaml:
|
Beta Was this translation helpful? Give feedback.
-
Hi, I solved it like this: In the agent config file, use the gateway container name as domain name and Ws protocol:
And add
Thank you for your help! |
Beta Was this translation helpful? Give feedback.
Hi,
I solved it like this:
In the agent config file, use the gateway container name as domain name and Ws protocol:
And add
narrowlink-gateway
to the domain list of gateway config file:Thank you for your help!