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
2 changed files with 14 additions and 1 deletions

View file

@ -3,6 +3,7 @@
{
imports = [
./services/gitea.nix
./services/hydra.nix
./services/minecraft.nix
./services/nextcloud.nix
./services/webserver.nix
@ -60,12 +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 config.services.hydra.port { };
};
};

View file

@ -0,0 +1,11 @@
{ ... }:
{
services.hydra = {
enable = true;
port = 3003;
hydraURL = "hydra.tlater.net";
notificationSender = "hydra@tlater.net";
};
}