mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2024-11-15 13:23:11 +01:00
19 lines
429 B
Nix
19 lines
429 B
Nix
{ config, ... }:
|
|
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}";
|
|
};
|
|
};
|
|
}
|