Configuration
Sirveo requires some minimal configuration, which can be provided via configuration file, command-line options, and/or environment variables. For example, the database host can be configured with:
db_host
in a configuration file key--db-host
in a CLI optionSIRVEO_DB_HOST
in an environment variable
Default configuration
To use a configuration file, generate one like this:
sirveo default-config > /etc/sirveo/config.json
If you prefer yaml:
sirveo default-config --yml > /etc/sirveo/config.yaml
The generated configuration file will contain default values for all settings.
Minimal configuration
Minimal configuration should include:
---# Change to "yes" to accept the EULAeula_accept: no
# Add a license herelicense: ""
# databasedb_host: localhostdb_port: 5432db_sslmode: preferdb_name: sirveodb_user: changemedb_password: changeme
# server usercreate_default_user: falsedefault_password: sirveoadmindefault_username: admin
# ...
Starting the server
To start the server using a configuration file, run:
sirveo server --config-file /etc/sirveo/config.yml
Or:
SIRVEO_CONFIG_FILE=/etc/sirveo/config.yml \sirveo server
A configuration file is optional. All configuration parameters can be provided as environment variables and/or CLI options.