From 6a9e43b6fed55e2730f54eff490ee8151c883bdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 13 Jun 2024 09:25:23 +0200 Subject: [PATCH] data_dir --- conf/.env | 7 +++++++ manifest.toml | 2 ++ 2 files changed, 9 insertions(+) diff --git a/conf/.env b/conf/.env index 3f4397d..7ed8ffe 100644 --- a/conf/.env +++ b/conf/.env @@ -23,3 +23,10 @@ MAILER_AUTH_USER=__APP__ MAILER_AUTH_PASSWORD=__MAIL_PWD__ MAILER_NOREPLY_NAME=__APP__ MAILER_NOREPLY_EMAIL=reply@__DOMAIN__ + +STORAGE_DRIVER=Type=Filesystem; Path=__DATA_DIR__ +STORAGE_DRIVER_FALLBACK=Type=Database; Mode=ReadAndWrite + +# In ReadAndClear mode, it's going to clear the fallback driver content every time an item is moved to the main driver. It means that over time the old storage will be cleared and all content will be on the new storage. +#STORAGE_DRIVER_FALLBACK=Type=Database; Mode=ReadAndClear + diff --git a/manifest.toml b/manifest.toml index 40b20af..55157ac 100644 --- a/manifest.toml +++ b/manifest.toml @@ -55,6 +55,8 @@ ram.runtime = "280M" [resources.install_dir] + [resources.data_dir] + [resources.permissions] main.url = "/" api.url = "/api"