Skip to content

Configuration

The following configuration options are available:

Environment Variable NameDescriptionRequiredDefaultExample
DWS_OWNERDID of the server’s owner.yesdid:key:z6MkrAvU5DpYtUjpJpohoKyKvWdbrQ1yyZcgM5TodLowsahP
DWS_ADDRESSIP address that the service binds to.no127.0.0.10.0.0.0 (IPv4) or :: (IPv6)
DWS_PORTPort that the service binds to.no80003000
DWS_BACKEND_FILE_STOREPath to the directory that contains the DID documents files when DWS_BACKEND=file is used.no$PWD/did_store/run/dws/did_store
DWS_BACKENDStorage backend, currently mem and file are implemented.nomemfile
DWS_EXTERNAL_HOSTNAMEExternal DNS domain name of the service. The value becomes part of the DIDs.nolocalhostexample.com
DWS_EXTERNAL_PATHExternal path that the DIDs will be served at. The value becomes part of the DIDs.no//dids
DWS_EXTERNAL_PORTExternal service port. The value becomes part of the DIDs.no8000 if $DWS_EXTERNAL_HOSTNAME == "localhost" otherwise 443 as required by the specifiction3000
DWS_RESOLVER_OVERRIDEDID resolver compatible with https://w3c-ccg.github.io/did-resolution/ that’s used before the built-in resolver.nohttp://uni-resolver-web:8080/1.0/identifiers/
DWS_RESOLVERDID resolver compatible with https://w3c-ccg.github.io/did-resolution/ that’s used after the built-in resovler.nohttp://uni-resolver-web:8080/1.0/identifiers/
DWS_TLSKey and certificate for serving a HTTPS/TLS secured service.no{certs="cert.pem", key="private.key"}
DWS_LOG_LEVELLog level.nonormaloff, 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