mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-26 00:18:28 +02:00
configured the purge bot
This commit is contained in:
parent
8dc4c74526
commit
a207695b2b
3 changed files with 47 additions and 0 deletions
18
hosts/falkenstein-1/modules/purge/default.nix
Normal file
18
hosts/falkenstein-1/modules/purge/default.nix
Normal 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}";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue