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