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_hostin a configuration file key--db-hostin a CLI optionSIRVEO_DB_HOSTin an environment variable
Default configuration
To use a configuration file, generate one like this:
sirveo default-config > /etc/sirveo/config.jsonIf you prefer yaml:
sirveo default-config --yml > /etc/sirveo/config.yamlThe 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.ymlOr:
SIRVEO_CONFIG_FILE=/etc/sirveo/config.yml \sirveo serverA configuration file is optional. All configuration parameters can be provided as environment variables and/or CLI options.