sawe state
This commit is contained in:
parent
66a4bef740
commit
67152beb07
2 changed files with 8 additions and 3 deletions
|
@ -27,9 +27,6 @@ in mkIf conf.mail.enable {
|
||||||
tls = {
|
tls = {
|
||||||
enable = true;
|
enable = true;
|
||||||
implicit = true;
|
implicit = true;
|
||||||
};
|
|
||||||
proxy = {
|
|
||||||
|
|
||||||
};
|
};
|
||||||
listener = {
|
listener = {
|
||||||
smtp = {
|
smtp = {
|
||||||
|
@ -60,6 +57,7 @@ in mkIf conf.mail.enable {
|
||||||
domain = "chpu.eu";
|
domain = "chpu.eu";
|
||||||
};
|
};
|
||||||
certificate.default = {
|
certificate.default = {
|
||||||
|
default = true;
|
||||||
cert = "%{file:/var/lib/acme/chpu.eu/chain.pem}%";
|
cert = "%{file:/var/lib/acme/chpu.eu/chain.pem}%";
|
||||||
private-key = "%{file:/var/lib/acme/chpu.eu/key.pem}%";
|
private-key = "%{file:/var/lib/acme/chpu.eu/key.pem}%";
|
||||||
};
|
};
|
||||||
|
|
|
@ -30,6 +30,13 @@ in mkIf conf.nginx.enable {
|
||||||
|
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
virtualHosts = {
|
||||||
|
"chpu.eu" = {
|
||||||
|
serverName = "chpu.eu";
|
||||||
|
useACMEHost = "chpu.eu";
|
||||||
|
forceSSL = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [
|
networking.firewall.allowedTCPPorts = [
|
||||||
|
|
Loading…
Add table
Reference in a new issue