-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Closed
Labels
bugSomething isn't workingSomething isn't workingtriageThis issue needs to be triaged by a maintainerThis issue needs to be triaged by a maintainer
Description
Is there an existing issue for this?
- I have searched the existing issues
OS/Web Information
- Web Browser: Edge
- Local OS: Win10 docker desktop wsl2
- Remote OS: Win10 docker desktop wsl2
- Remote Architecture: x86-64
code-server --version
: codercom/code-server
Steps to Reproduce
- If I set the port to 443:443 in the docker compose of linuxserver/swag ,reverse proxies are good. I was able to use code-server in the docker .
- But If I set a different port mapping 443 in the docker compose of linuxserver/swag (such as 9091:443), I can't use code-server .
Expected
Because my port 443 remote access is forbidden, I want to works with a different port (such as 9091 ).
Actual
"The workbench failed to connect to the server (Error: WebSocket close with status code 1006)"
Logs
##code-server.yml
version: "3"
services:
code-server:
container_name: code-server
image: codercom/code-server
external_links:
- swag-network
ports:
- 8080:8080
volumes:
- /d/Docker_hub/code_server/config:/config
environment:
- PUID=1000
- PGID=1000
- TZ=Asia/Shanghai
- PASSWORD=*******
- PROXY_DOMAIN=code-server.example.dynv6.net #optional
- DEFAULT_WORKSPACE=/config/workspace
restart: always
##swag.yml
version: "3"
services:
swag:
container_name: swag
image: linuxserver/swag
cap_add:
- NET_ADMIN
environment:
- PUID=1000
- PGID=1000
- TZ=Asia/Shanghai
- URL=example.dynv6.net
- SUBDOMAINS=wildcard
- VALIDATION=dns
- DNSPLUGIN=rfc2136
volumes:
- /d/Docker_hub/swag_9091/config:/config
ports:
- 9091:443
- 8081:80 #optional
restart: unless-stopped
networks:
swag-network:
driver: bridge
##/config/nginx/proxy-confs/code-server.subdomain.conf
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name code-server.* "~^[0-9]{1,10}\.linux-code-server\..*$";
include /config/nginx/ssl.conf;
client_max_body_size 0;
location / {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
set $upstream_app code-server;
set $upstream_port 8080;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}
}
Screenshot/Video
No response
Does this issue happen in VS Code or GitHub Codespaces?
- I tested this in native VS Code.
- This does not happen in native VS Code.
- I tested this in GitHub Codespaces.
- This does not happen in GitHub Codespaces.
Are you accessing code-server over a secure context?
- I am using a secure context.
Notes
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingtriageThis issue needs to be triaged by a maintainerThis issue needs to be triaged by a maintainer