Move lastfm-status to its own file
This commit is contained in:
parent
75fdefa9bb
commit
2a409f3f51
3 changed files with 22 additions and 14 deletions
|
@ -79,15 +79,6 @@ in
|
|||
respond owo
|
||||
'';
|
||||
|
||||
"lastfm.catnip.ee".extraConfig = ''
|
||||
tls {
|
||||
dns cloudflare {env.CLOUDFLARE_API_TOKEN}
|
||||
resolvers 1.1.1.1
|
||||
}
|
||||
|
||||
reverse_proxy :${toString config.services.lastfm-status.port}
|
||||
'';
|
||||
|
||||
"http://syncthing.internal".extraConfig = ''
|
||||
@local remote_ip private_ranges 100.64.0.0/10
|
||||
reverse_proxy @local http://${config.services.syncthing.guiAddress}
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
./services/gonic.nix
|
||||
./services/youtuee.nix
|
||||
./services/confess.nix
|
||||
inputs.lastfm-status.nixosModules.default
|
||||
./services/lastfm-status.nix
|
||||
inputs.common-modules.nixosModules.nixos-upgrade
|
||||
];
|
||||
|
||||
|
@ -246,10 +246,6 @@
|
|||
guiAddress = "0.0.0.0:8384";
|
||||
openDefaultPorts = true;
|
||||
};
|
||||
lastfm-status = {
|
||||
enable = true;
|
||||
port = 4014;
|
||||
};
|
||||
scrutiny = {
|
||||
enable = true;
|
||||
collector.enable = true;
|
||||
|
|
21
services/lastfm-status.nix
Normal file
21
services/lastfm-status.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{ config, inputs, ... }: {
|
||||
imports = [
|
||||
inputs.lastfm-status.nixosModules.default
|
||||
];
|
||||
|
||||
services = {
|
||||
lastfm-status = {
|
||||
enable = true;
|
||||
port = 4014;
|
||||
};
|
||||
|
||||
caddy.virtualHosts."lastfm.catnip.ee".extraConfig = ''
|
||||
tls {
|
||||
dns cloudflare {env.CLOUDFLARE_API_TOKEN}
|
||||
resolvers 1.1.1.1
|
||||
}
|
||||
|
||||
reverse_proxy :${toString config.services.lastfm-status.port}
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue