Mercurial > libervia-backend
diff libervia/backend/core/constants.py @ 4266:9fc3d28bc3f6
core (main): add a mechanism to have a shared temp directory:
this directory may be used to share files between backend and frontends. Normally, an
os-dependent temporary directory is created for that, but if this option is set, the
directory will be created in <local_dir>/<cache_dir>, which may be useful in some use case
(e.g. containerized frontends and backend).
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 12 Jun 2024 22:47:34 +0200 |
parents | a7d4007a8fa5 |
children | 0d7bb4df2343 |
line wrap: on
line diff
--- a/libervia/backend/core/constants.py Wed Jun 12 22:37:04 2024 +0200 +++ b/libervia/backend/core/constants.py Wed Jun 12 22:47:34 2024 +0200 @@ -193,6 +193,10 @@ # directory for components specific data COMPONENTS_DIR = "components" CACHE_DIR = "cache" + # Directory to share files between backend and frontends. + # It will be a sub-dir of <local_dir>/<cache_dir> + LOCAL_SHARED_DIR = "_SHARED_TMP" + # files in file dir are stored for long term # files dir is global, i.e. for all profiles FILES_DIR = "files"