Configuration
The following configuration options are available:
Environment Variable Name | Description | Required | Default | Example |
---|---|---|---|---|
DWS_OWNER | DID of the server’s owner. | yes | did:key:z6MkrAvU5DpYtUjpJpohoKyKvWdbrQ1yyZcgM5TodLowsahP | |
DWS_ADDRESS | IP address that the service binds to. | no | 127.0.0.1 | 0.0.0.0 (IPv4) or :: (IPv6) |
DWS_PORT | Port that the service binds to. | no | 8000 | 3000 |
DWS_BACKEND_FILE_STORE | Path to the directory that contains the DID documents files when DWS_BACKEND=file is used. | no | $PWD/did_store | /run/dws/did_store |
DWS_BACKEND | Storage backend, currently mem and file are implemented. | no | mem | file |
DWS_EXTERNAL_HOSTNAME | External DNS domain name of the service. The value becomes part of the DIDs. | no | localhost | example.com |
DWS_EXTERNAL_PATH | External path that the DIDs will be served at. The value becomes part of the DIDs. | no | / | /dids |
DWS_EXTERNAL_PORT | External service port. The value becomes part of the DIDs. | no | 8000 if $DWS_EXTERNAL_HOSTNAME == "localhost" otherwise 443 as required by the specifiction | 3000 |
DWS_RESOLVER_OVERRIDE | DID resolver compatible with https://w3c-ccg.github.io/did-resolution/ that’s used before the built-in resolver. | no | http://uni-resolver-web:8080/1.0/identifiers/ | |
DWS_RESOLVER | DID resolver compatible with https://w3c-ccg.github.io/did-resolution/ that’s used after the built-in resovler. | no | http://uni-resolver-web:8080/1.0/identifiers/ | |
DWS_TLS | Key and certificate for serving a HTTPS/TLS secured service. | no | {certs="cert.pem", key="private.key"} | |
DWS_LOG_LEVEL | Log level. | no | normal | off , normal , debug , or critical |
DWS_<more> | Rocket offers more configuration settings, see https://rocket.rs/v0.5/guide/configuration/#environment-variables. Use prefix DWS_ . | no |