Write hmac key to json-like file
This commit is contained in:
parent
aa89185312
commit
aa0da11a07
|
@ -4,8 +4,9 @@
|
||||||
../../common/optional/services/postgres.nix
|
../../common/optional/services/postgres.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
sops.secrets.invidious_hmac_key = {
|
sops.secrets.invidious_hmac_key.sopsFile = ../secrets.yaml;
|
||||||
sopsFile = ../secrets.yaml;
|
sops.templates."invidious_hmac_key.json" = {
|
||||||
|
content = ''{ "hmac_key": "${config.sops.placeholder.invidious_hmac_key}" }'';
|
||||||
mode = "0444"; # I don't care about this key that much, as I'm the only user of this instance
|
mode = "0444"; # I don't care about this key that much, as I'm the only user of this instance
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -16,7 +17,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
domain = "yt.moonythm.dev";
|
domain = "yt.moonythm.dev";
|
||||||
port = 8414;
|
port = 8414;
|
||||||
hmacKeyFile = config.sops.secrets.invidious_hmac_key.path;
|
hmacKeyFile = config.sops.templates."invidious_hmac_key.json".path;
|
||||||
|
|
||||||
nginx.enable = true;
|
nginx.enable = true;
|
||||||
|
|
||||||
|
@ -25,7 +26,6 @@
|
||||||
admins = [ "prescientmoon" ];
|
admins = [ "prescientmoon" ];
|
||||||
default_user_preferences = {
|
default_user_preferences = {
|
||||||
default_home = "Subscriptions";
|
default_home = "Subscriptions";
|
||||||
max_results = 40;
|
|
||||||
comments = [ "youtube" "reddit" ];
|
comments = [ "youtube" "reddit" ];
|
||||||
save_player_pos = true;
|
save_player_pos = true;
|
||||||
automatic_instance_redirect = true;
|
automatic_instance_redirect = true;
|
||||||
|
|
Loading…
Reference in a new issue