mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2024-11-15 13:23:11 +01:00
20 lines
387 B
Nix
20 lines
387 B
Nix
|
{ config, ... }:
|
||
|
let
|
||
|
domain = "hydra.rfive.de";
|
||
|
in
|
||
|
{
|
||
|
services.hydra = {
|
||
|
enable = true;
|
||
|
port = 4000;
|
||
|
hydraURL = domain;
|
||
|
notificationSender = "hydra@localhost";
|
||
|
};
|
||
|
services.nginx.virtualHosts."${domain}" = {
|
||
|
enableACME = true;
|
||
|
forceSSL = true;
|
||
|
locations."/" = {
|
||
|
proxyPass = "http://127.0.0.1:${toString config.services.hydra.port}";
|
||
|
};
|
||
|
};
|
||
|
}
|