feat: move storage path setting to configuration file
- change default storage path to /srv/libretime - remove music dirs table - use /tmp for testing storage - storage dir should always have a trailing slash
This commit is contained in:
parent
b3ff2defc4
commit
f7bb6e7592
48 changed files with 464 additions and 4701 deletions
|
@ -3,6 +3,7 @@ from libretime_shared.config import (
|
|||
DatabaseConfig,
|
||||
GeneralConfig,
|
||||
RabbitMQConfig,
|
||||
StorageConfig,
|
||||
)
|
||||
|
||||
|
||||
|
@ -10,3 +11,4 @@ class Config(BaseConfig):
|
|||
general: GeneralConfig
|
||||
database: DatabaseConfig = DatabaseConfig()
|
||||
rabbitmq: RabbitMQConfig = RabbitMQConfig()
|
||||
storage: StorageConfig = StorageConfig()
|
||||
|
|
|
@ -1,8 +1,11 @@
|
|||
import os
|
||||
|
||||
from .._fixtures import fixture_path
|
||||
|
||||
os.environ.setdefault("LIBRETIME_DEBUG", "true")
|
||||
os.environ.setdefault("LIBRETIME_GENERAL_PUBLIC_URL", "http://localhost")
|
||||
os.environ.setdefault("LIBRETIME_GENERAL_API_KEY", "testing")
|
||||
os.environ.setdefault("LIBRETIME_STORAGE_PATH", str(fixture_path))
|
||||
|
||||
# pylint: disable=wrong-import-position,unused-import
|
||||
from .prod import (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue