Skip to main content

Mixpost Enterprise: Environment Variables

Overview of Environment Variables.

License environment variables

VariableTypeDefaultDescription
LICENSE_KEYstring-The unique license key used to install and validate Mixpost application.

Application environment variables

VariableTypeDefaultDescription
APP_NAMEstringMixpostThe name of your application.
APP_KEYstring-Key used to encrypt and decrypt sensitive data. Generate this using the following tool.
APP_DEBUGbooleanfalseDebug mode setting. Set to false for production environments.
APP_DOMAINstring-Your app's domain or subdomain, without the http:// or https:// prefix. (Docker only)
APP_URLstringhttp://example.comFull application URL.
MIXPOST_DEFAULT_LOCALEstringen-GBSpecifies the default locale used by Mixpost. This setting determines the language and regional format for the application.
MIXPOST_CORE_PATHstringmixpostThe path used by Mixpost to load its core routes. Example: https://example.com/mixpost. (The prefixes app and apps are reserved in our Docker image)
FORCE_CORE_PATH_CALLBACK_TO_NATIVEbooleanfalseIf set to true, this forces the callback URL to always use the native mixpost core path.
MIXPOST_PUBLIC_PAGES_PREFIXstringpagesPublic pages have an endpoint directly after the url domain. Example: https://example.com/pages/terms

Database environment variables

VariableTypeDefaultDescription
DB_HOSTstring127.0.0.1 ("mysql" for Docker)Specifies the hostname of the database server. Use "mysql" for Docker environments.
DB_PORTstring3306The port on which the database server is listening.
DB_DATABASEstringmixpost_dbThe name of the MySQL database used by the application.
DB_USERNAMEstringmixpost_userThe username for accessing the MySQL database.
DB_PASSWORDstring-The password for the MySQL database user.

Redis environment variables

VariableTypeDefaultDescription
REDIS_HOSTstring127.0.0.1 ("redis" for Docker)Specifies the hostname of the redis server. Use "redis" for Docker environments.
REDIS_PORTstring6379The port on which the redis server is listening.
REDIS_PASSWORDstring-The password for the Redis user.

Features environment variables

VariableTypeDefaultDescription
MIXPOST_FORGOT_PASSWORDbooleantrueEnables or disables the forgot password feature.
MIXPOST_TWO_FACTOR_AUTHbooleantrueEnables or disables two-factor authentication.
MIXPOST_API_ACCESS_TOKENSbooleantrueDetermines if API access tokens are enabled.
MIXPOST_AUTO_SUBSCRIBE_POST_ACTIVITIESbooleanfalseDetermines if the user automatically subscribes to post activities.

SMTP environment variables

VariableTypeDefaultDescription
MAIL_HOSTstringsmtp.mailgun.orgThe SMTP server address used to send emails.
MAIL_PORTnumber587The port used for SMTP connections, typically 587 for TLS or 465 for SSL.
MAIL_USERNAMEstring-The username required to authenticate with the SMTP server.
MAIL_PASSWORDstring-The password required to authenticate with the SMTP server.
MAIL_ENCRYPTIONstringtlsThe encryption protocol to use for securing SMTP communications (e.g., tls or ssl).
MAIL_FROM_ADDRESSstringhello@example.comThe default email address from which your application sends emails.
MAIL_FROM_NAMEstringValue from APP_NAMEThe default sender name used in outgoing emails, typically the application name.

File storage

VariableTypeDefaultDescription
MIXPOST_DISKstringpublicThe disk on which to store media files. Options:
- public
- s3
To use s3 disk you should fill in the AWS_* credentials.

S3

VariableTypeDefaultDescription
AWS_ACCESS_KEY_IDstringAccess key for the S3 server.
AWS_SECRET_ACCESS_KEYstringSecret key for the access key.
AWS_DEFAULT_REGIONstringHas to be set to a signing region: https://docs.aws.amazon.com/general/latest/gr/s3.html
AWS_BUCKETstringName of the bucket where Mixpost will store its files.

Logs environment variables

VariableTypeDefaultDescription
LOG_CHANNELstringsingleDefines the logging channel type for the application. Options include single for a single file or daily for a new file each day.
MIXPOST_LOG_CHANNELstring-Specifies a dedicated logging channel for capturing connection errors with social networks or third parties. If left blank, it defaults to the LOG_CHANNEL value.
SENTRY_LARAVEL_DSNstringnullThe Data Source Name (DSN) for Sentry integration. This is used to configure and enable error tracking and monitoring for your Laravel application with Sentry.

System environment variables

VariableTypeDefaultDescription
MIXPOST_AUTH_GUARDstringwebThis option controls the default authentication guard for the Mixpost dashboard routes. (Not available in Docker).
MIXPOST_CACHE_PREFIXstringmixpostDefine cache prefix.

FFMPEG environment variables

VariableTypeDefaultDescription
FFMPEG_PATHstring/usr/bin/ffmpegThe path to the FFMPEG executable on your server. This is used for video processing and conversions. (Not available in Docker)
FFPROBE_PATHstring/usr/bin/ffprobeThe path to the FFPROBE executable on your server. FFPROBE is used for gathering information from multimedia streams. (Not available in Docker).

WebSocket

VariableTypeDefaultDescription
BROADCAST_DRIVERnull / stringnullDefines the broadcast driver to be used for WebSocket connections. It can be set to drivers such as pusher or reverb, or null if broadcasting is not needed.

Pusher

VariableTypeDefaultDescription
PUSHER_APP_IDstringThe unique application ID for Pusher.
PUSHER_APP_KEYstringThe public key for Pusher.
PUSHER_APP_SECRETstringThe secret key for Pusher.
PUSHER_APP_CLUSTERstringSpecifies the Pusher cluster where the application is hosted, essential for managing regions and latency.

Reverb

VariableTypeDefaultDescription
REVERB_APP_IDstringUnique identifier for the Reverb application (use a randomly generated ID).
REVERB_APP_KEYstringThe public key for Reverb (use a randomly generated key).
REVERB_APP_SECRETstringThe secret key for Reverb (use a randomly generated key).
REVERB_HOSTstringexample.comThe host address for Reverb. Use "localhost" for testing on your localhost
REVERB_PORTstring80Specifies the port on which Reverb will accept WebSocket connections. Use 8080 for testing on your localhost
REVERB_SCHEMEstringhttpsDefines the connection scheme (e.g., http, https) for communicating with Reverb, securing data transmission.

SSL environment variables

VariableTypeDefaultDescription
SSL_EMAILstringuser@example.comThe email address used for SSL certificate registration and notifications. (Docker only)