Move confess-web to its own file
This commit is contained in:
parent
4bbe41b9ff
commit
75fdefa9bb
3 changed files with 29 additions and 18 deletions
28
services/confess.nix
Normal file
28
services/confess.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ config, inputs, ... }: {
|
||||
imports = [
|
||||
inputs.confess.nixosModules.default
|
||||
];
|
||||
|
||||
services = {
|
||||
confess-web = {
|
||||
enable = true;
|
||||
port = 8011;
|
||||
reverseProxy = true;
|
||||
trustedProxy = "127.0.0.1";
|
||||
environmentFile = "/etc/secrets/confess.env";
|
||||
};
|
||||
|
||||
borgbackup.jobs."borgbase".paths = [
|
||||
"/var/lib/confess-web"
|
||||
];
|
||||
|
||||
caddy.virtualHosts."confess.catnip.ee".extraConfig = ''
|
||||
tls {
|
||||
dns cloudflare {env.CLOUDFLARE_API_TOKEN}
|
||||
resolvers 1.1.1.1
|
||||
}
|
||||
|
||||
reverse_proxy :${toString config.services.confess-web.port}
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue