mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-25 16:08:30 +02:00
falkenstein-1 -> falkenstein
This commit is contained in:
parent
41d348b037
commit
bad96e4197
19 changed files with 41 additions and 33 deletions
24
hosts/falkenstein/modules/purge/default.nix
Normal file
24
hosts/falkenstein/modules/purge/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ config, ... }:
|
||||
let
|
||||
domain = "purge.${config.networking.domain}";
|
||||
in
|
||||
{
|
||||
age.secrets.purge = {
|
||||
file = ../../../../secrets/falkenstein/purge.age;
|
||||
};
|
||||
services.purge = {
|
||||
enable = true;
|
||||
discord = {
|
||||
clientId = "941041925216157746";
|
||||
publicKey = "d2945f6130d9b4a8dda8c8bf52db5dee127a82f89c6b8782e84aa8f45f61d402";
|
||||
tokenFile = config.age.secrets.purge.path;
|
||||
};
|
||||
};
|
||||
services.nginx.virtualHosts."${domain}" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:${toString config.services.purge.listenPort}";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue