Replies: 3 comments
-
@Dharisd It looks like you are trying to connect to the gateway using the HTTP protocol, while the client is attempting to connect using HTTPS. Setting port 80 is not sufficient for the client to use HTTP; you also need to set 0.1.x configuration You also don't need to enable secret: [1,2,3,4,5,6,7,8] # secret key for the gateway is used to authenticate clients and agents, at least 8 bytes
services: # list of services
- !Ws # insecure websocket service
domains: ["my_ip:80"] # list of domains that this service should listen to
listen_addr: "0.0.0.0:80" # address to listen to is sufficient. |
Beta Was this translation helpful? Give feedback.
-
after setting |
Beta Was this translation helpful? Give feedback.
-
It means the gateway you've set is not equal to one of the addresses in the secret: [1,2,3,4,5,6,7,8] # secret key for the gateway is used to authenticate clients and agents, at least 8 bytes
services: # list of services
- !Ws # insecure websocket service
domains: ["127.17.21.12"] # list of domains that this service should listen to
listen_addr: "0.0.0.0:80" # address to listen to |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
When i try connect to the gateway using
narrowlink list
i getUnable to connect to the gateway: IO Error: received corrupt message of type InvalidContentType
andWARN narrowlink_gateway::service::ws: invalid HTTP method parsed
on the gatewayTo Reproduce
Im using ubuntu 22.04 as gateway server and have tried linux and mac os as client and agent this is my config file for the gateway, please note that i dont have a domain
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Beta Was this translation helpful? Give feedback.
All reactions