adding caddy for slskd
This commit is contained in:
@@ -224,7 +224,7 @@
|
||||
};
|
||||
system = {
|
||||
fonts = {
|
||||
enable = false;
|
||||
enable = true;
|
||||
};
|
||||
locale = {
|
||||
enable = true;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user