configured the purge bot

This commit is contained in:
Rouven Seifert 2023-04-13 14:24:39 +02:00
parent 8dc4c74526
commit a207695b2b
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
3 changed files with 47 additions and 0 deletions

View file

@ -0,0 +1,18 @@
{ 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}";
};
};
}