Skip to content

Environment ​

System variables ​

Environment variables for the system context. Available server and docker.

VariableDefault
CHEVERETO_SERVICINGserver
CHEVERETO_SERVICE_NAMEphp
CHEVERETO_SERVICE_PORT8080

Context variables ​

Environment variables for the application context. Available self-hosted, saas. CHEVERETO_TRIAL controls if the system is in trial mode or not, in which case it uses CHEVERETO_TRIAL_ENABLE_* and CHEVERETO_TRIAL_MAX_* to control which features and limits are applied during trial.

VariableDefault
CHEVERETO_CONTEXTself-hosted
CHEVERETO_TRIAL0
CHEVERETO_TRIAL_ENABLE_*
CHEVERETO_TRIAL_MAX_*

Database variables ​

Environment variables for the database details.

VariableDefault
CHEVERETO_DB_DRIVERmysql
CHEVERETO_DB_HOSTlocalhost
CHEVERETO_DB_NAME
CHEVERETO_DB_PASS
CHEVERETO_DB_PDO_ATTRS[]
CHEVERETO_DB_PORT3306
CHEVERETO_DB_TABLE_PREFIXchv_
CHEVERETO_DB_USER

Error logging variables ​

Environment variables for handling error logging.

VariableDefault
CHEVERETO_ERROR_LOG_CLI
CHEVERETO_ERROR_LOG_CRON
CHEVERETO_ERROR_LOGphp://stderr

Debug variables ​

Environment variables for debug.

VariableDefault
CHEVERETO_DEBUG_LEVEL1

Runtime environment ​

Environment variable for the runtime environment. Available prod, dev.

VariableDefault
CHEVERETO_ENVIRONMENTprod

When CHEVERETO_ENVIRONMENT is dev:

  • Errors are displayed in full, regardless of the debug_errors setting.
  • xrDebug is enabled. If CHEVERETO_SERVICING is docker and CHEVERETO_XRDEBUG_HOST is localhost, the host is set to host.docker.internal.
  • The null email API becomes available, which discards all outgoing email.

DANGER

Don't use dev in production.

Edition variable ​

Environment variable for the Chevereto edition.

VariableDefault
CHEVERETO_EDITIONpro

xrDebug variables ​

VariableDefault
CHEVERETO_ENABLE_XRDEBUG0
CHEVERETO_XRDEBUG_HOSTlocalhost
CHEVERETO_XRDEBUG_HTTPS0
CHEVERETO_XRDEBUG_KEY
CHEVERETO_XRDEBUG_PORT27420

Hostname variables ​

Environment variables for the hostname configuration.

VariableDefault
CHEVERETO_HOSTNAMElocalhost
CHEVERETO_HOSTNAME_PATH/
CHEVERETO_HTTPS1
CHEVERETO_INTERNAL_HOSTNAMElocalhost

For CHEVERETO_HOSTNAME it refers to the network identifier and it supports hostname, ip address and domain name. It also supports suffixing the port (e.g., example.com:8080).

"Network identifier" conveys the idea of any entity that can identify or locate a resource or device within a network.

CHEVERETO_INTERNAL_HOSTNAME is the hostname used to reach the application from inside the network (e.g., the container service name). Requests to this hostname are treated like requests to localhost:

  • With CHEVERETO_SERVICING=docker, requests to this hostname (or to host.docker.internal) resolve to CHEVERETO_HOSTNAME.
  • It can reach the Tenants API and its internal config endpoint.

Encryption key ​

Environment variables for the encryption functionality.

VariableType
CHEVERETO_ENCRYPTION_KEYbase64 encoded (size 32)

Session variables ​

Environment variables for the session driver.

VariableDefault
CHEVERETO_SESSION_SAVE_HANDLERfiles
CHEVERETO_SESSION_SAVE_PATH/tmp

Image handling variables ​

Environment variables for controlling image handling.

VariableDefault
CHEVERETO_IMAGE_FORMATS_AVAILABLE["AVIF","JXL","JPEG","PNG","BMP","GIF","WEBP"]
CHEVERETO_IMAGE_LIBRARYimagick
CHEVERETO_IMAGICK_MEMORY_LIMIT1G
  • CHEVERETO_IMAGICK_MEMORY_LIMIT sets the ImageMagick memory resource limit, using php.ini shorthand (e.g., 512M, 1G). The memory-map limit is set to twice this value. It applies only when CHEVERETO_IMAGE_LIBRARY is imagick. Use 0 to keep the ImageMagick defaults.

Binary paths ​

Environment variables for configuring binary tools used by Chevereto.

VariableDefault
CHEVERETO_BINARY_EXIFTOOLexiftool
CHEVERETO_BINARY_EXIFTRANexiftran
CHEVERETO_BINARY_FFMPEGffmpeg
CHEVERETO_BINARY_FFPROBEffprobe

Cache variables ​

Environment variables for setting up application-level caching.

VariableDefault
CHEVERETO_CACHE_DRIVERredis
CHEVERETO_CACHE_HOST
CHEVERETO_CACHE_KEY_PREFIXchv:
CHEVERETO_CACHE_PASSWORD
CHEVERETO_CACHE_PORT
CHEVERETO_CACHE_USER
CHEVERETO_CACHE_TIME_MICRO60
CHEVERETO_CACHE_STAMPEDE_SLA0

Provider ​

Environment variables for configuring the service provider.

VariableDefault
CHEVERETO_PROVIDER_NAMESelf-hosted Chevereto
CHEVERETO_PROVIDER_URL#
CHEVERETO_PROVIDER_SUPPORT_URL#
CHEVERETO_PROVIDER_DOCS_URL#

Tenants ​

Environment variables for configuring multi-tenancy.

VariableDefault
CHEVERETO_TENANTS_API_REQUEST_SECRET
CHEVERETO_TENANTS_API_KEY_SECRET
CHEVERETO_TENANTS_API_IP_ALLOW_LIST
CHEVERETO_TENANTS_DB_ISOLATION_MODEdatabase
CHEVERETO_TENANT_ENFORCED{}
CHEVERETO_TENANT
  • CHEVERETO_TENANTS_API_REQUEST_SECRET is used to sign requests to the Tenants API.
  • CHEVERETO_TENANTS_API_KEY_SECRET is used to sign generated keys for the Tenants API.
  • CHEVERETO_TENANTS_API_IP_ALLOW_LIST is used to restrict access to the Tenants API by IP address or network.
  • CHEVERETO_TENANTS_DB_ISOLATION_MODE defines the database isolation mode for tenants, which can be either database (each tenant has its own database) or prefix (tenants share a database with table name prefixes).
  • CHEVERETO_TENANT_ENFORCED is a JSON object that defines which variables will be enforced (overridden) for the multi-tenant context.
  • CHEVERETO_TENANT is intended to be used to pass the current tenant id for CLI.

Toggles ​

Environment variables for the context where Chevereto system is being provided. Depending on where you run it, you may want to disable some Chevereto functionality.

VariableDefault
CHEVERETO_ENABLE_API_GUEST1
CHEVERETO_ENABLE_API_USER1
CHEVERETO_ENABLE_BANNERS1
CHEVERETO_ENABLE_BULK_IMPORTER1
CHEVERETO_ENABLE_CAPTCHA1
CHEVERETO_ENABLE_CDN1
CHEVERETO_ENABLE_CONSENT_SCREEN1
CHEVERETO_ENABLE_COOKIE_COMPLIANCE1
CHEVERETO_ENABLE_DEBUG1
CHEVERETO_ENABLE_EXPOSE_PAID_FEATURES1
CHEVERETO_ENABLE_EXTERNAL_SERVICES1
CHEVERETO_ENABLE_EXTERNAL_STORAGE_PROVIDERS1
CHEVERETO_ENABLE_FAVICON1
CHEVERETO_ENABLE_FOLLOWERS1
CHEVERETO_ENABLE_FORCE_POWERED_BY_FOOTER0
CHEVERETO_ENABLE_HOMEPAGE_CUSTOM1
CHEVERETO_ENABLE_HTACCESS_CHECK0
CHEVERETO_ENABLE_IP_BANS1
CHEVERETO_ENABLE_LANGUAGE_CHOOSER1
CHEVERETO_ENABLE_LIKES1
CHEVERETO_ENABLE_LOCAL_STORAGE1
CHEVERETO_ENABLE_LOGIN_PROVIDERS1
CHEVERETO_ENABLE_LOGO_CUSTOM1
CHEVERETO_ENABLE_MODERATION1
CHEVERETO_ENABLE_NEWS_CHECK1
CHEVERETO_ENABLE_NOTIFICATIONS1
CHEVERETO_ENABLE_NSFW_CONTROLS1
CHEVERETO_ENABLE_PAGES1
CHEVERETO_ENABLE_PHP_PAGES0
CHEVERETO_ENABLE_POWERED_BY_SETTING1
CHEVERETO_ENABLE_PUP_CUSTOM_URL1
CHEVERETO_ENABLE_ROUTING1
CHEVERETO_ENABLE_SEO_ALBUM_URL1
CHEVERETO_ENABLE_SEO_IMAGE_URL1
CHEVERETO_ENABLE_SERVICE_AKISMET1
CHEVERETO_ENABLE_SERVICE_MODERATECONTENT0
CHEVERETO_ENABLE_SERVICE_PROJECTARACHNID1
CHEVERETO_ENABLE_SERVICE_STOPFORUMSPAM1
CHEVERETO_ENABLE_STOPWORDS1
CHEVERETO_ENABLE_TENANTS0
CHEVERETO_ENABLE_UPDATE_CHECK1
CHEVERETO_ENABLE_UPDATE_CLI1
CHEVERETO_ENABLE_UPDATE_HTTP1
CHEVERETO_ENABLE_UPLOAD_FLOOD_PROTECTION1
CHEVERETO_ENABLE_UPLOAD_PLUGIN1
CHEVERETO_ENABLE_UPLOAD_URL1
CHEVERETO_ENABLE_UPLOAD_WATERMARK1
CHEVERETO_ENABLE_USERS1
CHEVERETO_ENABLE_USERS_CUSTOM1
CHEVERETO_ENABLE_XRDEBUG0

When one of these toggles is 0, its dashboard settings are locked to fixed values:

  • CHEVERETO_ENABLE_HOMEPAGE_CUSTOM locks the homepage cover image, title, paragraph and call to action to the defaults.
  • CHEVERETO_ENABLE_NSFW_CONTROLS turns off image_lock_nsfw_editing, the setting that stops users from editing the NSFW flag of their content.
  • CHEVERETO_ENABLE_USERS_CUSTOM locks these user settings: minimum age 0, avatar max size 1 MB, background max size 2 MB, signup notifications off, and email confirmation required (including for social login signups).

Limits ​

Environment variables that limits the use for Chevereto.

Zero 0 means no limit.

VariableDefault
CHEVERETO_MAX_ADMINS0
CHEVERETO_MAX_ALBUMS0
CHEVERETO_MAX_CACHE_TTL86400
CHEVERETO_MAX_CATEGORIES0
CHEVERETO_MAX_CHUNK_UPLOAD_SIZE16M
CHEVERETO_MAX_EXECUTION_TIME30
CHEVERETO_MAX_FILES0
CHEVERETO_MAX_LISTING_ITEMS_PER_PAGE0
CHEVERETO_MAX_LOGIN_PROVIDERS0
CHEVERETO_MAX_MANAGERS0
CHEVERETO_MAX_MEMORY_SIZE512M
CHEVERETO_MAX_PAGES0
CHEVERETO_MAX_POST_SIZE64M
CHEVERETO_MAX_STORAGES0
CHEVERETO_MAX_TAGS0
CHEVERETO_MAX_TAGS_PER_FILE0
CHEVERETO_MAX_TAGS_PER_LISTING0
CHEVERETO_MAX_UPLOAD_FILE_SIZE64M
CHEVERETO_MAX_UPLOAD_SIZE100M
CHEVERETO_MAX_USER_ALBUMS_LIST500
CHEVERETO_MAX_USERS0
CHEVERETO_MIN_STORAGES_ACTIVE0
  • For CHEVERETO_MAX_USER_ALBUMS_LIST it affects the number of albums on user's dropdown album menus.

File upload ​

Environment variables for the file uploading limits. It applies only for our container provisioning.

For non-container based provisioning you need to change these settings at php.ini configuration.

VariableDefault
CHEVERETO_MAX_UPLOAD_FILE_SIZE64M
CHEVERETO_MAX_POST_SIZE64M
CHEVERETO_MAX_EXECUTION_TIME30
CHEVERETO_MAX_MEMORY_SIZE512M

Proxy ​

Environment variables for tweaking server handling when the server is under a proxy.

VariableDefault
CHEVERETO_HEADER_CLIENT_IP
CHEVERETO_HEADER_CLIENT_IP_TRUSTED_PROXIES
CHEVERETO_HEADER_FORWARDED_HOSTHTTP_X_FORWARDED_HOST
CHEVERETO_HEADER_ROUTER_SECRETHTTP_X_ROUTER_SECRET
CHEVERETO_PROXY_ENTRYPOINT
CHEVERETO_PROXY_IP_ALLOW_LIST
CHEVERETO_ROUTER_SECRET

Note: CHEVERETO_HEADER_FORWARDED_HOST is followed only if passed CHEVERETO_HEADER_ROUTER_SECRET and CHEVERETO_ROUTER_SECRET match.

Jobs ​

Environment variables for configuring the jobs worker.

VariableDefault
CHEVERETO_SCHEDULER_INTERVAL300
  • CHEVERETO_SCHEDULER_INTERVAL is used to define how often (in seconds) the jobs scheduler will check for new jobs to process.

Released under the Apache-2.0 License.