adding caddy for slskd
This commit is contained in:
@@ -224,7 +224,7 @@
|
|||||||
};
|
};
|
||||||
system = {
|
system = {
|
||||||
fonts = {
|
fonts = {
|
||||||
enable = false;
|
enable = true;
|
||||||
};
|
};
|
||||||
locale = {
|
locale = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -43,6 +43,11 @@ in {
|
|||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
default = "slskd.${srv.domain}";
|
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 {
|
homepage.name = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
default = "slskd";
|
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 {
|
(lib.mkIf cfg.pihole.enable {
|
||||||
"${cfg.pihole.url}" = {
|
"${cfg.pihole.url}" = {
|
||||||
useACMEHost = srv.domain;
|
useACMEHost = srv.domain;
|
||||||
|
|||||||
Reference in New Issue
Block a user