add secrets for webdav and crypt
This commit is contained in:
parent
c5aae8b387
commit
a657ea7da5
|
@ -43,9 +43,11 @@
|
||||||
"api-keys/data/storage/webdav/Public"
|
"api-keys/data/storage/webdav/Public"
|
||||||
"api-keys/data/storage/webdav/Uploads"
|
"api-keys/data/storage/webdav/Uploads"
|
||||||
"api-keys/data/storage/webdav/Gaming"
|
"api-keys/data/storage/webdav/Gaming"
|
||||||
|
"api-keys/data/storage/webdav/Notes"
|
||||||
|
|
||||||
"private-public-keys/data/rclone/Chaos-Media-Crypt"
|
"private-public-keys/data/rclone/Chaos-Media-Crypt"
|
||||||
"private-public-keys/data/rclone/Chaos-Gaming-Crypt"
|
"private-public-keys/data/rclone/Chaos-Gaming-Crypt"
|
||||||
|
"private-public-keys/data/rclone/Chaos-Notes-Crypt"
|
||||||
];
|
];
|
||||||
|
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
|
@ -235,7 +237,14 @@
|
||||||
simple_get_htpasswd "/api-keys/storage/webdav/Gaming" "$secretFile"
|
simple_get_htpasswd "/api-keys/storage/webdav/Gaming" "$secretFile"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
webdav_notes_htpasswd = {
|
||||||
|
user = "storage";
|
||||||
|
group = "storage";
|
||||||
|
fetchScript = ''
|
||||||
|
simple_get_htpasswd "/api-keys/storage/webdav/Notes" "$secretFile"
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
rclone_config = {
|
rclone_config = {
|
||||||
user = "storage";
|
user = "storage";
|
||||||
group = "storage";
|
group = "storage";
|
||||||
|
@ -260,6 +269,7 @@
|
||||||
|
|
||||||
simple_get_replace_crypt "/private-public-keys/rclone/Chaos-Media-Crypt" "STORAGE_MEDIA_CRYPT" "$secretFile"
|
simple_get_replace_crypt "/private-public-keys/rclone/Chaos-Media-Crypt" "STORAGE_MEDIA_CRYPT" "$secretFile"
|
||||||
simple_get_replace_crypt "/private-public-keys/rclone/Chaos-Gaming-Crypt" "STORAGE_GAMING_CRYPT" "$secretFile"
|
simple_get_replace_crypt "/private-public-keys/rclone/Chaos-Gaming-Crypt" "STORAGE_GAMING_CRYPT" "$secretFile"
|
||||||
|
simple_get_replace_crypt "/private-public-keys/rclone/Chaos-Notes-Crypt" "STORAGE_NOTES_CRYPT" "$secretFile"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue