code-server: Auth redirect does not work under cloudflare universal SSL
code-serverversion: 1.0.0- OS Version: Debian 9, using docker
Steps to Reproduce
- Setup Cloudflare with universal SSL ( Which basically turns on their proxy service )
- That’s it. The auth redirect somehow does not work! Doesn’t matter what password I use, it just redirects to the same login page, with no useful indication in either client or server console
If I either drop down Cloudflare SSL and use plain HTTP, or disable auth and directly run with --no-auth option, both work just fine…
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 22 (6 by maintainers)
We use the same filenames in both the authed and unauthed bundle so your browser is caching them. This will be fixed soon!
Great! Was thinking about using .htpasswd as well, but I guess now I just need to wait a bit 😃
@Pitu Wow apparently that worked! Upon further testing, the only thing that’s mattered was
Disable cache (while DevTools is open)option… But how does this make any sense tho? (scratching my head trying to figure out what went wrong…) All local cache was clear before any kind of testing, Cloudfare cache was bypassed (Development Mode), multiple browsers and devices have been tested…@Pitu Thx! Though I have tried it out yet still not working Deployed Letsencrypt SSL on the server, direct connection works fine. With CloudFlare SSL set to Full (Strict), Universal SSL and Always use HTTPS, along with your nginx proxy config, still, no way to log in.
This is a wired one… Though the part that I did not copy were the ssl settings… which should not matter in theory? My current nginx config, just for reference
Thx! And I have confirmed (at least from my limited testing) Full SLL does not work, either. Drop their SSL and use self-signed one works, tho.
–allow-http has always been specified in the docker-compose command 😉 The service works fine with --no-auth option, after all.