Basic Authentication
To enable basic authentication for BLACKDAGGER, follow these steps:
Set the environment variables to configure basic authentication:
export BLACKDAGGER_IS_BASICAUTH=1 export BLACKDAGGER_BASICAUTH_USERNAME="<your-username>" export BLACKDAGGER_BASICAUTH_PASSWORD="<your-password>"
Replace
<your-username>and<your-password>with your desired username and password.Alternatively, create a
config.yamlfile in the$BLACKDAGGER_HOMEdirectory (default:$HOME/.config/blackdagger) to override the default configuration values.# Basic Auth isBasicAuth: true basicAuthUsername: "<your-username>" basicAuthPassword: "<your-password>"
You can enable HTTPS by configuring the following environment variables:
export BLACKDAGGER_CERT_FILE="<path-to-cert-file>" export BLACKDAGGER_KEY_FILE="<path-to-key-file>"
Replace
<path-to-cert-file>and<path-to-key-file>with the paths to your certificate and key files.See Configuration Options for more information on the configuration file.