Server: Configuration
All configurations are set using environment variables.
Creating a .env.docker file is recommended to store all the environment variables required to run the server.
The following sections describe the environment variables required to run the server.
Environment Variables
Attestations and Assertions require a valid RP_NAME, HOSTNAME, and ORIGIN to be set.
ORIGIN and HOSTNAME must be set to a valid domain secured with HTTPS.
RP_NAME=<SERVICE_NAME> # Friendly name of the serviceHOSTNAME=<DOMAIN_NAME> # Hostname of the serviceORIGIN=https://<DOMAIN_NAME> # Origin of the serviceIf you are using a custom Android client, make sure to update the SHA256 fingerprint.
ANDROID_SHA256HASH=<00:00:...> # SHA256 fingerprint of the Android clientANDROID_PACKAGENAME=<com.example.my-wallet> # Package name of the Android clientConfiguration for MongoDB
DB_HOST=<MONGO_DB_HOST:PORT> # Hostname of the MongoDB instanceDB_USERNAME=<MONGO_DB_USERNAME> # Username for the MongoDB instanceDB_PASSWORD=<MONGO_DB_PASSWORD> # Password for the MongoDB instanceDB_NAME=<MONGO_DB_NAME> # Database nameDB_ATLAS=false # Set to true if using MongoDB AtlasConfiguration for Redis
REDIS_HOST=<REDIS_HOST> # Hostname of the Redis instanceREDIS_PORT=<REDIS_PORT> # Port for the Redis instanceREDIS_USERNAME=<REDIS_USERNAME> # Username for the Redis instanceREDIS_PASSWORD= # Password for the Redis instanceFull Example
# DatabaseDB_HOST=mongo:27017DB_USERNAME=algorandDB_PASSWORD=algorandDB_NAME=fidoDB_ATLAS=false
# EventsREDIS_HOST=redisREDIS_PORT=6379REDIS_USERNAME=defaultREDIS_PASSWORD=
# FIDO2RP_NAME="Auth Server"HOSTNAME=my-static-domain.ngrok-free.appORIGIN=https://my-static-domain.ngrok-free.app
ANDROID_SHA256HASH=47:CC:4E:EE:B9:50:59:A5:8B:E0:19:45:CA:0A:6D:59:16:F9:A9:C2:96:75:F8:F3:64:86:92:46:2B:7D:5D:5CANDROID_PACKAGENAME=foundation.algorand.demo