Move lastfm-status to its own file

This commit is contained in:
batteredbunny 2025-01-15 03:02:33 +02:00
parent 75fdefa9bb
commit 2a409f3f51
3 changed files with 22 additions and 14 deletions

View file

@ -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}

View file

@ -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;

View 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}
'';
};
}