Enable ssl on code-server
This commit is contained in:
parent
ff91bc9be4
commit
aa2d332fc9
|
@ -8,6 +8,9 @@ in {
|
||||||
port = 4444;
|
port = 4444;
|
||||||
};
|
};
|
||||||
services.nginx.virtualHosts."code.home.feal.no" = {
|
services.nginx.virtualHosts."code.home.feal.no" = {
|
||||||
|
forceSSL = true;
|
||||||
|
sslCertificateKey = "/etc/ssl-snakeoil/code_home_feal_no.key";
|
||||||
|
sslCertificate = "/etc/ssl-snakeoil/code_home_feal_no.crt";
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://127.0.1.2:${toString cfg.port}";
|
proxyPass = "http://127.0.1.2:${toString cfg.port}";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
|
|
Loading…
Reference in New Issue