Compare commits

..

2 commits

Author SHA1 Message Date
Tristan Daniël Maat 4c05f0767f
nginx: Don't look up localhost via DNS
This results in occasional failure to resolve proxies because it turns
into [::1] for IPv6 reasons.

We hard-code the IPv4 address since the containers don't currently
support IPv6.
2021-05-14 12:21:20 +01:00
Tristan Daniël Maat 7ba4a8992c
Add hydra 2021-05-14 12:21:13 +01:00

View file

@ -2,11 +2,11 @@
{
imports = [
# ./services/gitea.nix
./services/gitea.nix
./services/hydra.nix
# ./services/minecraft.nix
# ./services/nextcloud.nix
# ./services/webserver.nix
./services/minecraft.nix
./services/nextcloud.nix
./services/webserver.nix
./ids.nix
];
@ -61,13 +61,13 @@
{
forceSSL = true;
enableACME = true;
locations."/" = { proxyPass = "http://localhost:${toString port}"; };
locations."/" = { proxyPass = "http://127.0.0.1:${toString port}"; };
} // extra;
in {
# "tlater.net" = host 3002 { serverAliases = [ "www.tlater.net" ]; };
# "gitea.tlater.net" = host 3000 { };
# "nextcloud.tlater.net" = host 3001 { };
"hydra.tlater.net" = host 3003 { };
"tlater.net" = host 3002 { serverAliases = [ "www.tlater.net" ]; };
"gitea.tlater.net" = host 3000 { };
"nextcloud.tlater.net" = host 3001 { };
"hydra.tlater.net" = host config.services.hydra.port { };
};
};