voyager: update certs. Also update flake
This commit is contained in:
@@ -1,19 +0,0 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
cfg = config.services.code-server;
|
||||
in {
|
||||
services.code-server = {
|
||||
enable = true;
|
||||
host = "127.0.1.2";
|
||||
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://${cfg.host}:${toString cfg.port}";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -7,7 +7,7 @@
|
||||
hostname = "mail.home.feal.no";
|
||||
};
|
||||
services.nginx.virtualHosts."${config.services.snappymail.hostname}" = let
|
||||
certPath = "/etc/ssl-snakeoil/mail_home_feal_no";
|
||||
certPath = "/etc/ssl-snakeoil/home.feal.no";
|
||||
in {
|
||||
addSSL = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user