finally works
This commit is contained in:
parent
18f05807d2
commit
7019a80883
2 changed files with 23 additions and 16 deletions
|
|
@ -50,18 +50,34 @@ in {
|
|||
extraConfig = ''
|
||||
error_page 404 /404.html;
|
||||
'';
|
||||
|
||||
addSSL = true;
|
||||
sslCertificate = "/var/www/portfolio/cert.pem";
|
||||
sslCertificateKey = "/var/www/portfolio/key.pem";
|
||||
};
|
||||
|
||||
"git.koendevLocal.nl" = {
|
||||
# addSSL = false;
|
||||
# enableACME = false;
|
||||
locations."/" = {
|
||||
proxyPass = "http://${osConfig.containers.forgejo.localAddress}:${toString osConfig.horseman.containers.forgejo.port}";
|
||||
};
|
||||
|
||||
addSSL = true;
|
||||
sslCertificate = "/var/www/portfolio/cert.pem";
|
||||
sslCertificateKey = "/var/www/portfolio/key.pem";
|
||||
};
|
||||
|
||||
"vault.koendevLocal.nl" = {
|
||||
# addSSL = false;
|
||||
# enableACME = false;
|
||||
locations."/" = {
|
||||
proxyPass = "http://${osConfig.containers.vaultwarden.localAddress}:${toString osConfig.horseman.containers.vaultwarden.port}";
|
||||
};
|
||||
|
||||
forceSSL = true;
|
||||
sslCertificate = "/var/www/portfolio/cert.pem";
|
||||
sslCertificateKey = "/var/www/portfolio/key.pem";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
@ -69,7 +85,7 @@ in {
|
|||
networking = {
|
||||
firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [80];
|
||||
allowedTCPPorts = [80 443];
|
||||
};
|
||||
useHostResolvConf = lib.mkForce false;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue