How can I setup an SSL?
hey there, im running the server on ubuntu 20.04, how can I install an SSL on it?
Also, how can I work on a dynamic website using the code server? Like have the codeserver on port 80 and the website on port 30
92 Replies
are you talking about code-server or coder ?
code-server
alright
you can use the --cert CLI argument
code-server --cert <path to certificate file>
alr... and how do i get a certification file?
using certbot -> https://certbot.eff.org/
aight
tx
is the cert file a .key file or a .crt file
actually
code-server --cert cert.crt --cert-key cert.key
i forgot the cert key![No description](https://cdn.answeroverflow.com/1026828924359024660/unknown.png)
kk
@Phorcys also how can I make it so the code-server only has rights to edit in the /var/www/html folder?
make it run as a user that only has permissions on this folder
alr, thanks
[2022-10-04T12:15:48.746Z] error listen EADDRINUSE: address already in use 127.0.0.1:80
when i try to run it on port 80
when i run it on any other port it times outare you running anything on port 80 ?
yes of course you are
apache
alright
i think i got an nginx server
nginx nginx
sure
it's whatever
altho i did do sudo systemctl stop nginx