Skip to content

code-server is being accessed over an insecure domain. Web views, the clipboard, and other functionality will not work as expected. #1627

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

Closed
milkboylyf opened this issue May 12, 2020 · 10 comments

Comments

@milkboylyf
Copy link

I use Google Chrome as the default browser, its version is 81.0.4044.138, and I put code-server on a remote server, the system is centos7, and the following reminder is displayed when I log in to the browser:

code-server is being accessed over an insecure domain. Web views, the clipboard, and other functionality will not work as expected.

@yyjlincoln
Copy link

You need a domain and enable https.

@milkboylyf
Copy link
Author

You need a domain and enable https.
How dose code-server starts with https. I find that it starts defaultly with http.

@yyjlincoln
Copy link

You can set up a reverse proxy server using Nginx, and then obtain an SSL certificate from LetsEncrypt or other places.

@milkboylyf
Copy link
Author

Thank you! I will try it!

@cmoog
Copy link
Contributor

cmoog commented May 14, 2020

Thank you for the assistance @yyjlincoln. We're aware that setup documentation is lacking.
#1628 aims to solve this problem.

@cmoog cmoog closed this as completed May 14, 2020
@avelinocneto
Copy link

You can set up a reverse proxy server using Nginx, and then obtain an SSL certificate from LetsEncrypt or other places.

I'm running on Ubuntu using Nginx , so how can I do that ?

@yyjlincoln
Copy link

You can set up a reverse proxy server using Nginx, and then obtain an SSL certificate from LetsEncrypt or other places.

I'm running on Ubuntu using Nginx , so how can I do that ?

Those docs might help you.

Configure Nginx:

http://nginx.org/en/docs/http/configuring_https_servers.html

Obtaining a SSL certificate from LetsEncrypt:

https://letsencrypt.org/getting-started/

@avelinocneto
Copy link

Thanks! It's working. But crashing on AWS free tier machine...

@censujiang
Copy link

可以使用Nginx设置反向代理服务器,然后从LetsEncrypt或者其他地方获取SSL证书。

我正在使用 Nginx 在 Ubuntu 上运行,那么我该怎么做呢?

这些文档可能对您有所帮助。

配置 Nginx:

http://nginx.org/en/docs/http/configuring_https_servers.html

从 LetsEncrypt 获取 SSL 证书:

https://letsencrypt.org/getting-started/

it is do not work on domain with nginx,I see the console have many error code

@jsjoeio
Copy link
Contributor

jsjoeio commented Jul 21, 2021

i think this is an error upstream. please look at microsoft/vscode#127770!

@coder coder locked as resolved and limited conversation to collaborators Jul 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants