Fix http acme challange for status.nekover.se

This commit is contained in:
fi 2024-11-20 05:46:40 +01:00
parent 10ccba8d9a
commit 975a5c1ece
2 changed files with 27 additions and 20 deletions

View file

@ -80,11 +80,6 @@
proto = "tcp";
sourcePort = 25;
}
{
destination = "172.18.50.2:80";
proto = "tcp";
sourcePort = 80;
}
{
destination = "172.18.50.2:465";
proto = "tcp";

View file

@ -2,23 +2,35 @@
{
services.nginx = {
enable = true;
virtualHosts."status.nekover.se" = {
forceSSL = true;
enableACME = true;
listen = [
{
virtualHosts = {
"mail-1.grzb.de" = {
listen = [{
addr = "0.0.0.0";
port = 80;
}
{
addr = "0.0.0.0";
port = 443;
ssl = true;
}
];
locations."/" = {
proxyPass = "http://localhost:3001";
proxyWebsockets = true;
}];
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;
};
};
};
};