qbit cert to lambda, homepage uses https qbit nzbd
This commit is contained in:
parent
61afb7478d
commit
2951f5e944
@ -130,7 +130,7 @@
|
||||
};
|
||||
"qbittorrent server" =
|
||||
let
|
||||
url = "http://${config.my.ips.server}:${toString config.my.servers.qbittorrent.port}";
|
||||
url = "https://${config.my.ips.server}:${toString config.my.servers.qbittorrent.port}";
|
||||
name = "qbittorrent";
|
||||
in
|
||||
lib.mkIf config.my.servers.qbittorrent.enable {
|
||||
@ -145,7 +145,7 @@
|
||||
};
|
||||
"qbittorrent miniserver" =
|
||||
let
|
||||
url = "http://${config.my.ips.miniserver}:${toString config.my.servers.qbittorrent.port}";
|
||||
url = "https://${config.my.ips.miniserver}:${toString config.my.servers.qbittorrent.port}";
|
||||
name = "qbittorrent";
|
||||
in
|
||||
lib.mkIf config.my.servers.qbittorrent.enable {
|
||||
@ -161,7 +161,7 @@
|
||||
sabnzbd =
|
||||
let
|
||||
name = "sabnzbd";
|
||||
url = "http://${config.my.ips.server}:${toString config.my.servers.sabnzbd.port}";
|
||||
url = "https://${config.my.ips.server}:${toString config.my.servers.sabnzbd.port}";
|
||||
in
|
||||
{
|
||||
icon = "${name}.png";
|
||||
|
||||
@ -50,19 +50,19 @@ in
|
||||
home-manager.users.jawz.xdg.configFile."unpackerr.conf" =
|
||||
lib.mkIf config.my.servers.unpackerr.enable
|
||||
{ source = ../../dotfiles/unpackerr.conf; };
|
||||
sops.secrets = {
|
||||
"certificates/qbit_cert" = {
|
||||
sops.secrets =
|
||||
let
|
||||
mkQbitSecret = file: mode: {
|
||||
inherit mode;
|
||||
inherit (config.users.users.jawz) group;
|
||||
sopsFile = ../../secrets/keys.yaml;
|
||||
owner = config.users.users.jawz.name;
|
||||
inherit (config.users.users.jawz) group;
|
||||
path = "/home/jawz/.config/qBittorrent/ssh/server.crt";
|
||||
};
|
||||
"certificates/qbit_key" = {
|
||||
sopsFile = ../../secrets/keys.yaml;
|
||||
owner = config.users.users.jawz.name;
|
||||
inherit (config.users.users.jawz) group;
|
||||
path = "/home/jawz/.config/qBittorrent/ssh/server.key";
|
||||
path = "/home/jawz/.config/qBittorrent/ssl/${file}";
|
||||
};
|
||||
in
|
||||
{
|
||||
"certificates/qbit_cert" = mkQbitSecret "server.crt" "0644";
|
||||
"certificates/qbit_key" = mkQbitSecret "server.key" "0600";
|
||||
};
|
||||
systemd = {
|
||||
packages = [ pkgs.qbittorrent-nox ];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user