Compare commits
4 commits
60e00f5a76
...
f0bc4e058f
Author | SHA1 | Date | |
---|---|---|---|
chaos | f0bc4e058f | ||
chaos | c84a946b76 | ||
chaos | a657ea7da5 | ||
chaos | c5aae8b387 |
|
@ -144,3 +144,9 @@ password2 = STORAGE_GAMING_CRYPT_SALT
|
|||
type = chunker
|
||||
remote = Gaming-Source:
|
||||
chunk_size = 128Mi
|
||||
|
||||
[Notes]
|
||||
type = crypt
|
||||
remote = StorageBox:Notes
|
||||
password = STORAGE_NOTES_CRYPT_PASSWORD
|
||||
password2 = STORAGE_NOTES_CRYPT_SALT
|
|
@ -91,6 +91,7 @@ in {
|
|||
"/Public/".proxyPass = "http://${containerIP}:${toString ports.webdav_public}";
|
||||
"/Uploads/".proxyPass = "http://${containerIP}:${toString ports.webdav_uploads}";
|
||||
"/Gaming/".proxyPass = "http://${containerIP}:${toString ports.webdav_gaming}";
|
||||
"/Notes/".proxyPass = "http://${containerIP}:${toString ports.webdav_notes}";
|
||||
};
|
||||
extraConfig = ''
|
||||
client_max_body_size ${clientMaxBodySize};
|
||||
|
|
|
@ -93,6 +93,16 @@ in {
|
|||
"--vfs-cache-mode=full"
|
||||
];
|
||||
}
|
||||
{
|
||||
id = "notes";
|
||||
remote = "Notes:";
|
||||
type = "webdav";
|
||||
extraArgs = [
|
||||
"--addr=0.0.0.0:${toString ports.webdav_notes}"
|
||||
"--htpasswd=${secrets.webdav_notes_htpasswd.path}"
|
||||
"--baseurl=/Notes/"
|
||||
];
|
||||
}
|
||||
{
|
||||
id = "music-ro";
|
||||
remote = "StorageBox:Music";
|
||||
|
|
|
@ -43,9 +43,11 @@
|
|||
"api-keys/data/storage/webdav/Public"
|
||||
"api-keys/data/storage/webdav/Uploads"
|
||||
"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-Gaming-Crypt"
|
||||
"private-public-keys/data/rclone/Chaos-Notes-Crypt"
|
||||
];
|
||||
|
||||
packages = with pkgs; [
|
||||
|
@ -235,6 +237,13 @@
|
|||
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 = {
|
||||
user = "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-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