Sign inSign up

bsvb/bux-wallet-backend

By bsvb

•Updated over 2 years ago

Image
0

4.9K

bsvb/bux-wallet-backend repository overview

⁠BUX Wallet Backend

The bux-wallet-backend is an HTTP server that serves as the referential backend server for a custodial web wallet for Bitcoin SV (BSV). It integrates and utilizes the bux-server component to handle various BSV-related operations, including the creation of transactions and listing incoming and outgoing transactions.

⁠Running as a Docker Image

To run the bux-wallet-backend as a Docker image with custom configuration, you can set the required environment variables using the -e flag. The environment variables will be used by the application to configure various aspects of the backend.

Here's the updated command with environment variables for the Docker container:

docker run -p 8080:8080 -e BUX_PAYMAIL_DOMAIN=bux.com bsvb/bux-wallet-backend:latest
⁠Configuration

The bux-wallet-backend can be configured using environment variables. Here is a list of available environment variables and their purpose:

Environment VariableDescriptionDefault Value
DB_HOSTDatabase host address.localhost
DB_PORTDatabase port number.5432
DB_USERDatabase username.postgres
DB_PASSWORDDatabase password.postgres
DB_NAMEDatabase name.postgres
DB_SSL_MODEDatabase SSL mode.disable
HTTP_SERVER_READ_TIMEOUTHTTP server read timeout (in seconds).40
HTTP_SERVER_WRITE_TIMEOUTHTTP server write timeout (in seconds).40
HTTP_SERVER_PORTHTTP server port.8080
HTTP_SERVER_COOKIE_DOMAINHTTP server cookie domain parameter.localhost
HTTP_SERVER_COOKIE_SECUREHTTP server cookie secure parameter.false
HTTP_SERVER_CORS_ALLOWED_DOMAINSHTTP server CORS origin allowed domains.[]
BUX_ADMIN_XPRIVBUX admin xpriv.xprv9s21ZrQH143K3CbJXirfrtpLvhT3Vgusdo8coBritQ3rcS7Jy7sxWhatuxG5h2y1Cqj8FKmPp69536gmjYRpfga2MJdsGyBsnB12E19CESK
BUX_SERVER_URLBUX server URL.http://localhost:3003/v1
BUX_WITH_DEBUGEnable debugging for BUX connection.true
BUX_SIGN_REQUESTEnable signing of all requests for BUX connection.true
BUX_PAYMAIL_DOMAINBUX paymail domain.bux.com
BUX_PAYMAIL_AVATARBUX paymail avatar URL.http://localhost:3003/static/paymail/avatar.jpg
HASH_SALTHash salt for the application.bux
LOGGING_LEVELLogging level for the running application.Debug
ENDPOINTS_EXCHANGE_RATEExchange rate endpoint URL used in the app.https://api.whatsonchain.com/v1/bsv/main/exchangerate

Tag summary

Content type

Image

Digest

sha256:8d4d80977…

Size

13.5 MB

Last updated

over 2 years ago

docker pull bsvb/bux-wallet-backend