For example, when running "code-server --cert-key=MyKey.key", how do I hide the MyKey.key from being viewed by "Open File..." or through the Explorer or through the terminal? Is there a way to let another user handle the encrypting/decrypting stuff maybe?
I ended up using an nginx proxy with SSL termination and no SSL certificate on code-server itself.
I am using apache, and I've tried
Listen 8081
<VirtualHost *:8081>
ProxyPass / http://www.google.ca/
ProxyPassReverse / http://www.google.ca/
</VirtualHost>
which works as intended, but i've tried
Listen 8081
<VirtualHost *:8081>
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
</VirtualHost>
with code-server running on port 8080. It loads the code-server icon in the tab, but the page doesn't load.
i found this:
https://github.com/cdr/code-server/blob/master/doc/self-hosted/index.md#apache-reverse-proxy
im assuming thisll fix my problems, so im closing
nvm, i tried this but the same thing happened
Listen 8081
<VirtualHost *:8081>
ServerName mysite.ca
RewriteEngine On
RewriteCond %{HTTP:Upgrade} =websocket [NC]
RewriteRule /(.*) ws://localhost:8080/$1 [P,L]
RewriteCond %{HTTP:Upgrade} !=websocket [NC]
RewriteRule /(.*) http://localhost:8080/$1 [P,L]
ProxyRequests off
RequestHeader set X-Forwarded-Proto https
RequestHeader set X-Forwarded-Port 443
ProxyPass / http://localhost:8080/ nocanon
ProxyPassReverse / http://localhost:8080/
</VirtualHost>
I am using 2.preview.10-vsc1.37.0
edit: i just ended up using nginx alongside apache, and nginx solves my issues. closing
Most helpful comment
I ended up using an nginx proxy with SSL termination and no SSL certificate on code-server itself.