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
|
@ -223,15 +223,6 @@ in
|
||||||
redir https://catnip.ee{uri} permanent
|
redir https://catnip.ee{uri} permanent
|
||||||
'';
|
'';
|
||||||
|
|
||||||
"confess.catnip.ee".extraConfig = ''
|
|
||||||
tls {
|
|
||||||
dns cloudflare {env.CLOUDFLARE_API_TOKEN}
|
|
||||||
resolvers 1.1.1.1
|
|
||||||
}
|
|
||||||
|
|
||||||
reverse_proxy :${toString config.services.confess-web.port}
|
|
||||||
'';
|
|
||||||
|
|
||||||
":80".extraConfig = ''
|
":80".extraConfig = ''
|
||||||
respond awawaw
|
respond awawaw
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -30,8 +30,8 @@
|
||||||
./services/pds
|
./services/pds
|
||||||
./services/gonic.nix
|
./services/gonic.nix
|
||||||
./services/youtuee.nix
|
./services/youtuee.nix
|
||||||
|
./services/confess.nix
|
||||||
inputs.lastfm-status.nixosModules.default
|
inputs.lastfm-status.nixosModules.default
|
||||||
inputs.confess.nixosModules.default
|
|
||||||
inputs.common-modules.nixosModules.nixos-upgrade
|
inputs.common-modules.nixosModules.nixos-upgrade
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -209,7 +209,6 @@
|
||||||
"/var/lib/syncthing"
|
"/var/lib/syncthing"
|
||||||
"/var/lib/matrix-synapse"
|
"/var/lib/matrix-synapse"
|
||||||
"/var/lib/plex"
|
"/var/lib/plex"
|
||||||
"/var/lib/confess-web"
|
|
||||||
"/var/lib/influxdb2"
|
"/var/lib/influxdb2"
|
||||||
|
|
||||||
"/etc/secrets"
|
"/etc/secrets"
|
||||||
|
@ -247,13 +246,6 @@
|
||||||
guiAddress = "0.0.0.0:8384";
|
guiAddress = "0.0.0.0:8384";
|
||||||
openDefaultPorts = true;
|
openDefaultPorts = true;
|
||||||
};
|
};
|
||||||
confess-web = {
|
|
||||||
enable = true;
|
|
||||||
port = 8011;
|
|
||||||
reverseProxy = true;
|
|
||||||
trustedProxy = "127.0.0.1";
|
|
||||||
environmentFile = "/etc/secrets/confess.env";
|
|
||||||
};
|
|
||||||
lastfm-status = {
|
lastfm-status = {
|
||||||
enable = true;
|
enable = true;
|
||||||
port = 4014;
|
port = 4014;
|
||||||
|
|
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