Server Commands
Welcome to the Server Commands page for LightningUserVault. Here, you'll find a comprehensive list of commands to help you start and configure the web server. Let's dive in!
GENERAL SERVER SETTINGS
SERVER_ADDRESS
: Address for your web server. Default:0.0.0.0:8080
LOG_LEVEL
: Set the type of logs you want to see. Options includeERROR
,INFO
,DEBUG
, andWARN
. Default:WARN
STORAGE SETTINGS
To determine how your data is stored, use the following:
STORAGE_TYPE
: Choose between:PEBBLE
(default)POSTGRESQL
Postgres Settings (Only applicable if STORAGE_TYPE=POSTRESQL
):
DB_HOST
: Address of your database host. Default:postgres:5432
DB_USER
: Username for your database. Default:postgres
DB_PASS
: Password for your database user. Default:postgres
DB_NAME
: Name of your database. Default:postgres
CACHE SETTINGS
Manage your caching preferences with:
ENABLE_CACHE
: Decide if you want to enable caching. Default:true
If ENABLE_CACHE=false
, the following commands won't be used:
CACHE_TYPE
: Type of cache to use. Default:MEMCACHE
MEMCACHE_ADDRESS
: Address for the memcache server. Default:memcached:11211
Using the CLI Flags
For those who prefer command-line flags, here they are:
--log-level
: Set the log level--server-address
: Define the server endpoint--enable-cache
: Enable or disable cache--cache-type
: Choose the cache type--memcache-address
: Set the memcache endpoint--storage-type
: Select the storage type--database-host
: Define the database host endpoint--database-user
: Specify the database user--database-pass
: Set the database password--database-name
: Name your database
Environment File Support
LightningUserVault supports environment files. If you set a flag inside the environment file, it will take priority over any CLI flag.
Here's a template for your environment file:
Last updated