mirror of
https://github.com/akuker/RASCSI.git
synced 2025-02-21 23:29:02 +00:00
25 lines
708 B
Python
25 lines
708 B
Python
"""
|
|
Constant definitions used by other modules
|
|
"""
|
|
|
|
from os import getenv, getcwd
|
|
import rascsi.common_settings
|
|
|
|
WEB_DIR = getcwd()
|
|
HOME_DIR = "/".join(WEB_DIR.split("/")[0:3])
|
|
|
|
AFP_DIR = f"{HOME_DIR}/afpshare"
|
|
|
|
MAX_FILE_SIZE = getenv("MAX_FILE_SIZE", str(1024 * 1024 * 1024 * 4)) # 4gb
|
|
|
|
# The file name of the default config file that loads when rascsi-web starts
|
|
DEFAULT_CONFIG = f"default.{rascsi.common_settings.CONFIG_FILE_SUFFIX}"
|
|
# File containing canonical drive properties
|
|
DRIVE_PROPERTIES_FILE = WEB_DIR + "/drive_properties.json"
|
|
|
|
# The user group that is used for webapp authentication
|
|
AUTH_GROUP = "rascsi"
|
|
|
|
# The language locales supported by RaSCSI
|
|
LANGUAGES = ["en", "de", "sv", "fr", "es"]
|