3. Configuration
halon-bounce-classifier loads settings from environment variables.
You can set the environment variables by using the following command.
$ systemctl edit halon-bounce-classifier
You can then add the environment variables you want to configure like below.
[Service]
Environment="PORT=8000"
Environment="HOST=127.0.0.1"
Below are some of the most important environment variables that can be configured.
- PORT
The port that the server will run on. The default is 8000
.
- HOST
The IP address that the server will run on. The default is 127.0.0.1
.
Note
Use *
to listen on any IP, useful when for example running in a container
- SSL_CERTFILE
The path to the certificate. The default is to not use SSL.
- SSL_KEYFILE
The path to the private key. The default is to not use SSL.
- API_KEY
The API key to use. The default is to not use an API key.