2023-04-25 13:57:59 +00:00
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
|
|
|
security.acme = {
|
|
|
|
acceptTerms = true;
|
|
|
|
defaults = {
|
|
|
|
email = "jade@schrottkatze.de";
|
|
|
|
webroot = "/var/lib/acme/acme-challenge";
|
|
|
|
};
|
|
|
|
certs = {
|
2023-04-26 23:48:20 +00:00
|
|
|
#"meet.katzen.cafe" = {
|
|
|
|
#group = "nginx";
|
|
|
|
#keyType = "rsa4096";
|
|
|
|
#};
|
|
|
|
#"wiki.phtanum-b.katzen.cafe" = {
|
|
|
|
#group = "nginx";
|
|
|
|
#keyType = "rsa4096";
|
|
|
|
#};
|
|
|
|
"auth.katzen.cafe" = {
|
2023-04-26 21:25:04 +00:00
|
|
|
group = "nginx";
|
|
|
|
keyType = "rsa4096";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
services.nginx = {
|
|
|
|
enable = true;
|
|
|
|
virtualHosts = {
|
2023-04-26 23:48:20 +00:00
|
|
|
#"wiki.phtanum-b.katzen.cafe" = {
|
|
|
|
#forceSSL = true;
|
|
|
|
#enableACME = true;
|
|
|
|
#locations."/" = {
|
|
|
|
#proxyPass = "http://127.0.0.1:8080";
|
|
|
|
#};
|
|
|
|
#};
|
2023-04-26 21:25:04 +00:00
|
|
|
"auth.katzen.cafe" = {
|
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
|
|
|
locations."/" = {
|
|
|
|
proxyPass = "http://127.0.0.1:8097";
|
|
|
|
};
|
|
|
|
};
|
2023-04-25 13:57:59 +00:00
|
|
|
};
|
2023-04-26 21:25:04 +00:00
|
|
|
|
2023-04-25 13:57:59 +00:00
|
|
|
};
|
|
|
|
}
|