-
Hello all, I have a question regarding the integration of code-server in a restrictive cloud environment. I work as a solution architect for a worldwide company. We would like to deploy a code-server into an AWS account, but the security team requires the use of the API gateway (another way to provide an "internet-facing" solution). Unfortunately, we have been confronted with a major issue with WebSockets. During our tests, we found that the code-server was opening its WebSockets in the same path as for HTTP requests. The REST API Gateway does not support WebSockets. In order to bypass this problem, we have studied a solution with 2 API Gateway, 1 REST, and 1 Websocket. However, we did not find a way to dissociate these calls. My question is: is it possible to configure the code-server by adding a discriminant in the path? This way, we could redirect the traffic based on the path (e.g. '/rest/' for HTTP and '/ws/' for WebSockets). Many thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
My guess is you'd have to use something like NGINX/Caddy to redirect traffic based on the path, but @code-asher might have a better idea. (We'd also be happy to chat with you about Coder, which might be a better solution for your use case) |
Beta Was this translation helpful? Give feedback.
My guess is you'd have to use something like NGINX/Caddy to redirect traffic based on the path, but @code-asher might have a better idea.
(We'd also be happy to chat with you about Coder, which might be a better solution for your use case)