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

Created on 12 May 2020  路  8Comments  路  Source: cdr/code-server

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.

Most helpful comment

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

All 8 comments

You need a domain and enable https.

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

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

Thank you! I will try it!

Thank you for the assistance @yyjlincoln. We're aware that setup documentation is lacking.
https://github.com/cdr/code-server/pull/1628 aims to solve this problem.

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 ?

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/

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Arsaev picture Arsaev  路  3Comments

pchecinski picture pchecinski  路  3Comments

pchecinski picture pchecinski  路  3Comments

tecosaur picture tecosaur  路  3Comments

grant picture grant  路  3Comments