nixos-config/hosts/falkenstein-1/modules/purge/default.nix

19 lines
429 B
Nix
Raw Normal View History

2023-04-13 14:24:39 +02:00
{ 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.port}";
};
};
}