mirror of
https://git.feal.no/felixalb/nixos-config.git
synced 2024-12-22 04:07:28 +01:00
Enable ssl on code-server
This commit is contained in:
parent
f14628114e
commit
58725073e4
@ -8,6 +8,9 @@ in {
|
||||
port = 4444;
|
||||
};
|
||||
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."/" = {
|
||||
proxyPass = "http://127.0.1.2:${toString cfg.port}";
|
||||
proxyWebsockets = true;
|
||||
|
Loading…
Reference in New Issue
Block a user