Subpath/Relative path redirected to absolute path before logging in #2072
-
Issue description:Intended to run In reality, Nginx can be set thus Nginx config:server {
listen 80;
listen [::]:80;
server_name <example.com>;
location /code {
proxy_pass http://localhost:8080/;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection upgrade;
proxy_set_header Accept-Encoding gzip;
}
}code-server
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
I think this is because there's no trailing slash on One solution would be to use nginx to redirect |
Beta Was this translation helpful? Give feedback.
I think this is because there's no trailing slash on
/code. code-server tries to redirect to a relative path (./login) which with/codeends up being/login.One solution would be to use nginx to redirect
/codeto/code/and then proxy the latter to code-server.