# List of environment variables ## nginx ### Misc `MULTISITE` Values : *yes* | *no* Default value : *no* Context : *global* When set to *no*, only one server block will be generated. Otherwise one server per host defined in the `SERVER_NAME` environment variable will be generated. Any environment variable tagged as *multisite* context can be used for a specific server block with the following format : *host_VARIABLE=value*. If the variable is used without the host prefix it will be applied to all the server blocks (but still can be overriden). `SERVER_NAME` Values : *<first name> <second name> ...* Default value : *www.bunkerity.com* Context : *global*, *multisite* Sets the host names of the webserver separated with spaces. This must match the Host header sent by clients. Useful when used with `MULTISITE=yes` and/or `AUTO_LETSENCRYPT=yes` and/or `DISABLE_DEFAULT_SERVER=yes`. `MAX_CLIENT_SIZE` Values : *0* | *Xm* Default value : *10m* Context : *global*, *multisite* Sets the maximum body size before nginx returns a 413 error code. Setting to 0 means "infinite" body size. `ALLOWED_METHODS` Values : *allowed HTTP methods separated with | char* Default value : *GET|POST|HEAD* Context : *global*, *multisite* Only the HTTP methods listed here will be accepted by nginx. If not listed, nginx will close the connection. `DISABLE_DEFAULT_SERVER` Values : *yes* | *no* Default value : *no* Context : *global* If set to yes, nginx will only respond to HTTP request when the Host header match a FQDN specified in the `SERVER_NAME` environment variable. For example, it will close the connection if a bot access the site with direct ip. `SERVE_FILES` Values : *yes* | *no* Default value : *yes* Context : *global*, *multisite* If set to yes, nginx will serve files from /www directory within the container. A use case to not serving files is when you setup bunkerized-nginx as a reverse proxy. `DNS_RESOLVERS` Values : *\* Default value : *127.0.0.11* Context : *global* The IP addresses of the DNS resolvers to use when performing DNS lookups. `ROOT_FOLDER` Values : *\* Default value : */www* Context : *global* The default folder where nginx will search for web files. Don't change it unless you know what you are doing. `ROOT_SITE_SUBFOLDER` Values : *\* Default value : Context : *global*, *multisite* The subfolder where nginx will search for site web files. `LOG_FORMAT` Values : *\* Default value : *$host $remote_addr - $remote_user \[$time_local\] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"* Context : *global* The log format used by nginx to generate logs. More info [here](http://nginx.org/en/docs/http/ngx_http_log_module.html#log_format). `LOG_LEVEL` Values : *debug, info, notice, warn, error, crit, alert, or emerg* Default value : *info* Context : *global* The level of logging : *debug* means more logs and *emerg* means less logs. More info [here](https://nginx.org/en/docs/ngx_core_module.html#error_log). `HTTP_PORT` Values : *\* Default value : *8080* Context : *global* The HTTP port number used by nginx inside the container. `HTTPS_PORT` Values : *\* Default value : *8443* Context : *global* The HTTPS port number used by nginx inside the container. `WORKER_CONNECTIONS` Values : *\* Default value : 1024 Context : *global* Sets the value of the [worker_connections](https://nginx.org/en/docs/ngx_core_module.html#worker_connections) directive. `WORKER_RLIMIT_NOFILE` Values : *\* Default value : 2048 Context : *global* Sets the value of the [worker_rlimit_nofile](https://nginx.org/en/docs/ngx_core_module.html#worker_rlimit_nofile) directive. `INJECT_BODY` Values : *\* Default value : Context : *global*, *multisite* Use this variable to inject any HTML code you want before the \ tag (e.g. : `\