-
Notifications
You must be signed in to change notification settings - Fork 5.9k
How to run code-server with HTTPS by a low privilege user? #1211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I don't think this has something to deal with privilege access but something with the internals. I recommend trying a reverse proxy for doing SSL instead in the near future. |
@sr229 Thank you for your answer. That sounds good. |
What worked for me (using apache2)
|
@sr229 This knowledge should be addded to |
It already is |
@TheHllm Thank you. But I'm using nginx. Do you know if it works via nginx? |
@TheHllm OK, I'll try myself later. |
Thanks, I resolved. Now I can use nginx reverse proxy.
I'm grateful for this project, so I summarize below what I tried and what happened. (I think It may be helpful.) Circumstances |
See #1331 |
Sorry, I have deviated from the main subject. |
So, I have the same issue. When I run coder with my normal user with valid letsencrypt certs I will get a blank page after password prompt.
If I run coder with sudo everything works fine.
Is using a reverse HTTPS proxy recommended? I couldn´t find any kind of documentation about this behaviour. From the output of |
sr229 replied that
I interpreted this reply as recommending reverse proxying over HTTP. I consider that it has no security problems if it is proxied to localhost. |
How to run code-server with HTTPS by a low privilege user?
Overview
If I run code-server as the root user and log in, I can use the account in the terminal of VSCode.
However, since code-server uses password authentication for login, I want to use a low privilege user alternatively for insurance.
Are there good methods?
Environment
code-server 2.1692-vsc1.39.2
Ubuntu 18.04.1 LTS
Problem
If a user had access to the private key, I was able to run code-server over https with the user. But, when I log in on Chrome, it shows just a white screen.
DevTools console shows the following error after about 5 seconds from login.
Moreover, I don't need access to the private key when coding, so I don't want to give it.
Supplementary information
Even a low privilege user can run code-server over HTTP.
The text was updated successfully, but these errors were encountered: