2023-09-16 20:05:33 +02:00
|
|
|
{ ... }:
|
|
|
|
{
|
|
|
|
services.nginx = {
|
|
|
|
enable = true;
|
2023-11-25 21:29:55 +01:00
|
|
|
virtualHosts = {
|
|
|
|
"mail-1.grzb.de" = {
|
|
|
|
listen = [{
|
2023-09-16 20:05:33 +02:00
|
|
|
addr = "0.0.0.0";
|
|
|
|
port = 80;
|
2023-11-25 21:29:55 +01:00
|
|
|
}];
|
|
|
|
locations."/" = {
|
|
|
|
# proxy port 80 to mail server nginx for acme http challange
|
|
|
|
proxyPass = "http://172.18.50.2:80";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
"status.nekover.se" = {
|
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
|
|
|
listen = [
|
|
|
|
{
|
|
|
|
addr = "0.0.0.0";
|
|
|
|
port = 80;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
addr = "0.0.0.0";
|
|
|
|
port = 443;
|
|
|
|
ssl = true;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
locations."/" = {
|
|
|
|
proxyPass = "http://localhost:3001";
|
|
|
|
proxyWebsockets = true;
|
|
|
|
};
|
2023-09-16 20:05:33 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|