Archived
1
0
Fork 0
This repository has been archived on 2023-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
ts3web/config/EnvConstants.php
Varakh f6db46234a Release 2.26 which incorporates the following changes
- Add a ENV_DIR for docker containers to allow changing the env file location changes where the rest of the configuration is bootstrapped from
- Add log_dir and snapshot_dir in env file configuration to determine the log and snapshot directories
- Massively cleaned up README and provide better examples
2023-04-06 22:53:19 +02:00

104 lines
1.8 KiB
PHP

<?php
/**
* Class EnvConstants
*/
class EnvConstants
{
/**
* Example env file
*/
const FILE_NAME_EXAMPLE_ENV = "env.example";
/**
* Custom env file
*/
const FILE_NAME_ENV = "env";
/**
* The path to the env file
*/
const ENV_DIR = "ENV_DIR";
/**
* The path to the logs directory
*/
const LOG_DIR = "log_dir";
/**
* The path to the snapshots directory
*/
const SNAPSHOT_DIR = "snapshot_dir";
/**
* Site title
*/
const SITE_TITLE = "site_title";
/**
* Site language
*/
const SITE_LANGUAGE = "site_language";
/**
* Site date format
*/
const SITE_DATE_FORMAT = "site_date_format";
/**
* Theme
*/
const THEME = "theme";
/**
* Cache
*/
const THEME_CACHE = "theme_cache";
/**
* TeamSpeak host
*/
const TEAMSPEAK_HOST = "teamspeak_host";
/**
* TeamSpeak query port
*/
const TEAMSPEAK_QUERY_PORT = "teamspeak_query_port";
/**
* TeamSpeak default user
*/
const TEAMSPEAK_USER = "teamspeak_user";
/**
* TeamSpeak log lines
*/
const TEAMSPEAK_LOG_LINES = "teamspeak_log_lines";
/**
* Log name
*/
const LOG_NAME = "log_name";
/**
* Log level
*/
const LOG_LEVEL = "log_level";
/**
* Required attributes
*/
const ENV_REQUIRED = [
EnvConstants::SITE_TITLE,
EnvConstants::SITE_LANGUAGE,
EnvConstants::SITE_DATE_FORMAT,
EnvConstants::THEME,
EnvConstants::THEME_CACHE,
EnvConstants::TEAMSPEAK_HOST,
EnvConstants::TEAMSPEAK_QUERY_PORT,
EnvConstants::TEAMSPEAK_USER,
EnvConstants::TEAMSPEAK_LOG_LINES,
EnvConstants::LOG_NAME,
EnvConstants::LOG_LEVEL
];
}