nix-infra/config/hosts/valkyrie/nginx.nix

38 lines
776 B
Nix
Raw Normal View History

2023-09-16 20:05:33 +02:00
{ ... }:
{
services.nginx = {
enable = true;
virtualHosts = {
"mail-1.grzb.de" = {
listen = [{
2023-09-16 20:05:33 +02:00
addr = "0.0.0.0";
port = 80;
}];
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
};
};
};
}