adding caddy for slskd

This commit is contained in:
2025-08-05 17:08:06 +02:00
parent 27313ada64
commit fdfff0de8c
2 changed files with 15 additions and 1 deletions

View File

@@ -224,7 +224,7 @@
};
system = {
fonts = {
enable = false;
enable = true;
};
locale = {
enable = true;

View File

@@ -43,6 +43,11 @@ in {
type = lib.types.str;
default = "slskd.${srv.domain}";
};
port = lib.mkOption {
type = lib.types.int;
default = 5031;
description = "The port to host Soulseek webui on.";
};
homepage.name = lib.mkOption {
type = lib.types.str;
default = "slskd";
@@ -114,6 +119,15 @@ in {
};
})
(lib.mkIf cfg.slskd.enable {
"${cfg.slskd.url}" = {
useACMEHost = srv.domain;
extraConfig = ''
reverse_proxy http://127.0.0.1:${toString cfg.slskd.port}
'';
};
})
(lib.mkIf cfg.pihole.enable {
"${cfg.pihole.url}" = {
useACMEHost = srv.domain;