-
-
Notifications
You must be signed in to change notification settings - Fork 60
Configuration
Edi Septriyanto edited this page Aug 13, 2021
·
8 revisions
Please consider making changes to the default configuration before running LEMPer Stack installer by executing the following command:
cp .env.dist .env
Edit the .env
file with your favorite editor. The .env
file contains all of the configuration parameters for LEMPer Stack installer.
vim .env
Adjust all the parameters to your needs.
The .env
file contains configuration parameters (environment variables) used during installation. Each of environment variables are grouped in a section. The section names represents the software stack names.
-
AUTO_INSTALL
- If this is set totrue
, the LEMPer Stack will automatically install the software stack in unattended installation mode, otherwise you will be prompted to install the software stack in interactive mode. The valid value istrue
orfalse
, and the default value isfalse
. -
AUTO_REMOVE
- If this is set totrue
, the LEMPer Stack will automatically remove existing software stack during installation and in unattended uninstallation mode, otherwise you will be prompted to uninstall or keep the existing software. The valid value istrue
orfalse
, and the default value istrue
. -
FORCE_REMOVE
- If this is set totrue
, the LEMPer Stack will completely remove all files and configs related to uninstalled existing software stack during installation and in unattended uninstallation mode, otherwise you will be prompted to remove or keep them. The valid value istrue
orfalse
, and the default value istrue
. -
DRYRUN
- If this is set totrue
, the LEMPer Stack will not actually install or uninstall software stack, but will show the installation or uninstallation process. The valid value istrue
orfalse
, and the default value isfalse
. -
FIX_BROKEN
- If this is set totrue
, the LEMPer Stack will try to fix broken software packages during installation and in unattended uninstallation mode. The valid value istrue
orfalse
, and the default value isfalse
. -
ENABLE_SWAP
- If this is set totrue
, the LEMPer Stack will enable swap space on the server. The valid value istrue
orfalse
, and the default value istrue
. -
DEBUG
- If this is set totrue
, the LEMPer Stack will output debug information during installation. The valid value istrue
orfalse
, and the default value isfalse
. -
LOGGING
- If this is set totrue
, the LEMPer Stack will output log information during installation to log file. The valid value istrue
orfalse
, and the default value istrue
. -
LOG_FILE
- The path to the installer log file. The default value is./install.log
. -
BUILD_DIR
- The path to the directory where the software stack will be built during installation. The default value is/usr/local/src/lemper
. This build directory will be deleted after installation.
-
ENVIRONMENT
- This is the name of the environment that you want to install. The valid values aredevelopment
andproduction
, the default value isdevelopment
. Thedevelopment
environment is used for development purposes, whileproduction
environment is used for production purposes. -
SERVER_HOSTNAME
- The hostname of the server that you want to install. The default value islocalhost.localdomain
. In production environment, server hostname must be valid FQDN format (e.g.hostname.example.com
). -
SERVER_IP
- The IP address of the server that you want to install. The default value is127.0.0.1
. -
TIMEZONE
- The timezone of the server that you want to install. The default value isUTC
. For detailed timezon format reference, please refer to timezone database. -
LEMPER_USERNAME
- The default username used by LEMPer Stack. The default value islemper
. This username will be created if it doesn't exist. -
LEMPER_PASSWORD
- The password used by LEMPer Stack user. If not set (empty), the password will be created automatically during installation process. -
LEMPER_ADMIN_EMAIL
- The email address of the LEMPer Stack admin. You must set the value to valid email address. It is used for Let's Encrypt certificates and email notifications.
-
SSH_PORT
- The port number of the SSH server. For security reasons, avoid using default SSH port22
. The default LEMPer Stack ssh port is2269
and it is recommended that you change it to a different port number. If your server instance behind firewalls, you must allow inbound connections on the firewall to the SSH port. -
SSH_ALLOW_ROOT_LOGIN
- If this is set totrue
, the LEMPer Stack will allow SSH login with root user. To prevent brute-force SSH attacks that targeting root account, by default the value is set tofalse
. -
SSH_PASSWORDLESS_LOGIN
- If this is set totrue
, the LEMPer Stack will allow SSH login without password. SSH passwordless login requires public-private key pairs generated from ssh-keygen. -
RSA_PUB_KEY
- The strings value of the RSA public key file generated from ssh_keygen. Follow this tutorial SSH Passwordless Login Using SSH Keygen Authentication to setup public-private key pairs. -
KEY_HASH_LENGTH
- The length of the hash value of the RSA public key. The valid value is2048
or4096
, and the default value is2048
.
-
INSTALL_NGINX
- If this is set totrue
, the LEMPer Stack will install Nginx HTTP server. The valid value istrue
orfalse
, and the default value istrue
. -
NGINX_INSTALLER
- Nginx installer to use. The valid values arerepo
andsource
, and the default value issource
. -
NGINX_VERSION
- The version of Nginx to install. The valid values arestable
orlts
,latest
ormainline
, and version number e.g.1.20.1
(only if Nginx build from source), and the default value isstable
. -
NGINX_EXTRA_MODULES
- If set totrue
, LEMPer Stack will install Nginx extra modules. The valid values aretrue
orfalse
, and the default value istrue
. -
NGINX_DYNAMIC_MODULE
- If set totrue
, the Nginx extra modules will be build as dynamic module. The valid values aretrue
andfalse
, and the default value istrue
.
-
INSTALL_PHP
- If this is set totrue
, the LEMPer Stack will install PHP. The valid value istrue
orfalse
, and the default value istrue
. -
PHP_VERSIONS
- The version of PHP to install, currently supported version are7.3
,7.4
,8.0
. Installing multiple versions is supported, separate version by space, e.g. the default value isPHP_VERSIONS="7.4 8.0"
. -
PHP_EXTENSIONS
- Additional PHP modules (extensions) to install. Installing multiple extension is supported, separate version by space, e.g.PHP_EXTENSIONS="php7.4-curl php7.4-mbstring"
.
-
INSTALL_MYSQL
- If this is set totrue
, the LEMPer Stack will install MySQL/MariaDB. The valid value istrue
orfalse
, and the default value istrue
. -
MYSQL_SERVER
- The MySQL/MariaDB server to install. Currently supported value ismariadb
. -
MYSQL_VERSION
- The version of MySQL/MariaDB to install. The valid version number e.g.10.6
, and the default value is10.6
. -
MYSQL_SECURE_INSTALL
- If this is set totrue
, the LEMPer Stack will perform MySQL/MariaDB with secure installation. The valid value istrue
orfalse
, and the default value istrue
. -
MYSQL_ROOT_PASSWORD
- The password of MySQL/MariaDB root user. The default value is blank, and it will be created automatically during installation process. -
MYSQL_ALLOW_REMOTE
- If this is set totrue
, the LEMPer Stack will allow remote connection to MySQL/MariaDB server. The valid value istrue
orfalse
, and the default value isfalse
.
-
INSTALL_MEMCACHED
- If this is set totrue
, the LEMPer Stack will install Memcached. The valid value istrue
orfalse
, and the default value isfalse
. -
MEMCACHED_INSTALLER
- Memcached installer to use. The valid values arerepo
andsource
, and the default value isrepo
. -
MEMCACHED_VERSION
- The version of Memcached to install. The valid values arelatest
and version number e.g1.6.0
, and the default value islatest
. -
MEMCACHED_SASL
- If this is set totrue
, the LEMPer Stack will install Memcached with SASL support. The valid value istrue
orfalse
, and the default value isfalse
. -
MEMCACHED_USERNAME
- The username of SASL-enabled Memcached user. The default value islempermc
. -
MEMCACHED_PASSWORD
- The password of SASL-enabled Memcached user. The default value is blank, and it will be created automatically during installation process.
-
INSTALL_MONGODB
- If this is set totrue
, the LEMPer Stack will install MongoDB. The valid value istrue
orfalse
, and the default value isfalse
. -
MONGODB_VERSION
- The version of MongoDB to install. The valid values are4.2
,4.3
,4.4
, and5.0
. The default value is5.0
, only available for Debianstretch
andbuster
, or Ubuntubionic
andfocal
. -
MONGODB_ADMIN_USER
- The default username of MongoDB admin user. The default value islemperdb
. -
MONGODB_ADMIN_PASSWORD
- The default password of MongoDB admin user. The default value is blank, and it will be created automatically during installation process.
-
INSTALL_REDIS
- If this is set totrue
, the LEMPer Stack will install Redis. The valid value istrue
orfalse
, and the default value isfalse
. -
REDIS_INSTALLER
- Redis installer to use. The valid values arerepo
andsource
, and the default value isrepo
. -
REDIS_VERSION
- The version of Redis to install. The valid values arestable
and version number e.g6.2.5
, and the default value isstable
. -
REDIS_REQUIRE_PASSWORD
- If this is set totrue
, the LEMPer Stack will install Redis with password. The valid value istrue
orfalse
, and the default value isfalse
. -
REDIS_PASSWORD
- The password of Redis user. The default value is blank, and it will be created automatically during installation process.
- Not implemented yet.
- Experimental, not fully tested.
-
INSTALL_CERTBOT
- If this is set totrue
, the LEMPer Stack will install Certbot. The valid value istrue
orfalse
, and the default value istrue
. It is hihgly recommended to set this parameter totrue
because LEMPer Stack usesCertbot
to manage SSL Certificates fromLet's Encrypt
.
-
INSTALL_FW
- If this is set totrue
, the LEMPer Stack will install firewall rules. The valid value istrue
orfalse
, and the default value istrue
. -
FW_CONFIGURATOR
- The firewall configurator engine to use. The valid values areufw
,csf
, andapf
, and the default value isufw
.
-
INSTALL_FAIL2BAN
- If this is set totrue
, the LEMPer Stack will install fail2ban. The valid value istrue
orfalse
, and the default value istrue
. -
FAIL2BAN_INSTALLER
- Fail2ban installer to use. The valid values arerepo
andsource
, and the default value issource
. -
FAIL2BAN_VERSION
- The version of Fail2ban to install. The valid version number e.g.0.11.2
(only if Fail2ban installed from source), and the default value is0.11.2
.