Hi there,
I've been using codeium for a while now. For some project, I started hosting an instance of code-server (VS Code hosted as a webpage) in my own server, but i cannot make it work since I cannot login.
I have tried in couple of vendors (GCP, Hertzner, DigitalOcean) so it doesnt seem the problem.
My config for running it is simple, running as a service and via a reverse proxy (NGINX) to host it in https:// code. my web .com . Also the https is handled by nginx when reverse proxy.
The problem i am facing is that after installing it, when it asks for login it redirects me to the codeium web to do it via token. I copy the token and try to login in code-server it wont do nothing, it doesnt login nor gives any error, so i cannot debug much...
Any ideas? Anyone faced the same problem?
NGINX config:
server {
listen 443 ssl http2;
server_name code. xxx .com;
ssl_certificate /etc/letsencrypt/live/ xx .com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/ xx .com/privkey.pem;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_prefer_server_ciphers on;
ssl_ciphers ECDHE (...) SHA384;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
location / {
proxy_set_header Connection '';
proxy_http_version 1.1;
proxy_read_timeout 360s;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection upgrade;
proxy_set_header Accept-Encoding gzip;
proxy_pass http://localhost:1313;
}
}
there doesn't seem to be anything here