For developers
Environment variables
5 min
php list of available environment variables default environment variables for the php container variable name description can be overwritten columns default value 120 yes php fpm clear env allows php to access only environment variables specified in php fpm env vars no php fpm env vars list of environment variables allowed to be accessed by php scripts collected dynamically no hosty project name of the project, as specified in the hosty yaml file no hosty environment name of the current environment no files ${storage} path absolute path to the file assets storage, where ${storage} variable is automatically replaced with the actual name of the persistent storage from the hosty yaml file no db host host of the main database cluster no db host reader host of the readonly database cluster (replica of the main cluster) no db name name of the database generated for the current environment no db port port of the database cluster no db driver database type (i e mysql ) no db user name of the user who has access to the db name database no db password password of the user who has access to the db name database no redis host host of the redis cluster (if redis service is enabled) no redis port port to use to connect to the redis cluster (if redis service is enabled) no redis password password to use to connect to the redis cluster (if redis service is enabled) no nginx list of available environment variables default environment variables for the nginx container variable name description can be overwritten nginx real ip header name of the http header where to take the real user ip from default value x forwarded for yes nginx log format override nginx logs pattern default value $http x forwarded for $remote addr \[$time local] "$request" $status $body bytes sent "$http referer" "$http user agent" yes nginx modsecurity enabled see modsecurity default value true yes nginx backend host default value 127 0 0 1 no nginx http2 default value on no apache list of available environment variables default environment variables for the apache container variable name description can be overwritten apache timeout how many seconds apache will wait for request to finish before it's force closed default value 120 yes apache server tokens see server tokens default value prod yes apache vhost preset apache container pre set mode default value php no apache backend host default value 127 0 0 1 no apache http2 default value on no python list of available environment variables default environment variables set for the python container variable name description can be overwritten columns default value 120 yes hosty project name of the project, as specified in the hosty yaml file no hosty environment name of the current environment no files ${storage} path absolute path to the file assets storage, where ${storage} variable is automatically replaced with the actual name of the persistent storage from the hosty yaml file no db host host of the main database cluster no db host reader host of the readonly database cluster (replica of the main cluster) no db name name of the database generated for the current environment no db port port of the database cluster no db driver database type (i e mysql ) no db user name of the user who has access to the db name database no db password password of the user who has access to the db name database no redis host host of the redis cluster (if redis service is enabled) no redis port port to use to connect to the redis cluster (if redis service is enabled) no redis password password to use to connect to the redis cluster (if redis service is enabled) no node list of available environment variables default environment variables set for the node container variable name description can be overwritten columns default value 120 yes hosty project name of the project, as specified in the hosty yaml file no hosty environment name of the current environment no files ${storage} path absolute path to the file assets storage, where ${storage} variable is automatically replaced with the actual name of the persistent storage from the hosty yaml file no redis host host of the redis cluster (if redis service is enabled) no redis port port to use to connect to the redis cluster (if redis service is enabled) no redis password password to use to connect to the redis cluster (if redis service is enabled) no