code-server version: 1.31.1-100
- OS Version: Debian 9
I have set up code-server on my server, and now I would like to access it externally. So I have set up a reverse proxy using Nginx. However when I navigate to the url I get an error in Chrome telling me that the page keeps redirecting (ERR_TOO_MANY_REDIRECTS).
If I shut down the code-server and go to the url I just get an error message, so this is correct.
server {
listen 80;
listen 443 ssl;
ssl_certificate /etc/nginx/ssl/nginx.crt;
ssl_certificate_key /etc/nginx/ssl/nginx.key;
server_name ide.server.com; # Removed real url
location ~ ^/ {
proxy_pass http://localhost:8443;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_read_timeout 1800;
proxy_connect_timeout 1800;
auth_basic "Restricted";
auth_basic_user_file /etc/nginx/.htpasswd;
}
}
code-serverversion: 1.31.1-100I have set up code-server on my server, and now I would like to access it externally. So I have set up a reverse proxy using Nginx. However when I navigate to the url I get an error in Chrome telling me that the page keeps redirecting (
ERR_TOO_MANY_REDIRECTS).If I shut down the code-server and go to the url I just get an error message, so this is correct.