nixos-config/hosts/falkenstein-1/modules/purge/default.nix
2023-04-13 14:28:09 +02:00

19 lines
435 B
Nix

{ config, pkgs, ... }:
let
domain = "purge.rfive.de";
in
{
sops.secrets."purge/environment".owner = "purge";
services.purge = {
enable = true;
environmentFile = config.sops.secrets."purge/environment".path;
};
services.nginx.virtualHosts."${domain}" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:${toString config.services.purge.listenPort}";
};
};
}