Drone: use external storage for nextcloud and zipline
This commit is contained in:
parent
0d196394ea
commit
6e2f453986
2 changed files with 14 additions and 0 deletions
|
|
@ -35,6 +35,19 @@
|
||||||
device = "zpool-mirror/backup";
|
device = "zpool-mirror/backup";
|
||||||
fsType = "zfs";
|
fsType = "zfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"/mnt/external/storage" = {
|
||||||
|
device = "zpool-mirror/storage";
|
||||||
|
fsType = "zfs";
|
||||||
|
};
|
||||||
|
|
||||||
|
# bind mounts for file storage dirs from external storage
|
||||||
|
"/var/lib/nextcloud/data/2fc6e1af776402040d95e1d5adc3babe4928587e84170c882815c808b472b3fa" = {
|
||||||
|
depends = [ "/mnt/external/storage" ];
|
||||||
|
device = "/mnt/external/storage/nextcloud/data/2fc6e1af776402040d95e1d5adc3babe4928587e84170c882815c808b472b3fa";
|
||||||
|
fsType = "none";
|
||||||
|
options = [ "bind" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.zfs.autoScrub.enable = true;
|
services.zfs.autoScrub.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
CORE_PORT = 8001;
|
CORE_PORT = 8001;
|
||||||
|
DATASOURCE_LOCAL_DIRECTORY = "/mnt/external/storage/zipline/uploads";
|
||||||
|
|
||||||
FEATURES_VERSION_CHECKING = "false";
|
FEATURES_VERSION_CHECKING = "false";
|
||||||
FEATURES_THUMBNAILS_NUM_THREADS = 2;
|
FEATURES_THUMBNAILS_NUM_THREADS = 2;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue