This will output a key file cert.key and certificate file cert.crt in the current directory
Take note of the path to your SSL certificate credentials folder which contains key file say cert.key and certificate file say cert.crt Replace /path/to/cert in the following commandwith the full qualified path to the above folder
If the certificate files are saved with a different name, you should update the parameters in the command accordingly.
You should see this output from the container:
Base URI: https://0.0.0.0:3080
Now Bitgo Express is listening to all interfaces, under the BitGo Port: 3080
The following is the information you will need to integrate with the script:
Host/Domain: The domain of the server it is running on
Port: 3080 or otherwise as specified in the setup from above.
Long Lived Access Token: This can be obtained from your BitGo Dashboard, please use the following guide.
Now to keep BitGo Express running in the background you may add the --detachoption along with the --restart unless-stoppedto automatically restart upon failure which returns a container ID. i.e docker run --detach --restart unless-stopped -it...
You may use any of the following commands to interact with a running container
Stop a specific container.
$ docker stop [container id]
List all running containers
$ docker ps
Display logs of a container.
$ docker logs [container id]
Docker in Production (without SSL)
Run the following if you want to start Bitgo Express without SSL safely.
You must block the port 3080 (or otherwise) from inbound traffic using Firewall. This will prevent external access to the running instance and avoid eavesdropper on your local network. Contact your service provider on how to achieve this. As long as you are able to open http://domain.com:3080 on your browser, where domain.com is your server domain or IP address, you are not secure!
Then you can access the running instance with http://localhost as BitGo Host and 3080 as BitGo Port
Generate Long Lived Access Token
1. Login to the appropriate BitGo dashboard based on the environment you want to setup on.
Test: Uses testnet chain. Sign up & Login HereProduction: Uses main chain. Sign up & Login Here
2. Click your account name at the top right, click User Settings.
3. Under Developer Options tab, click on Create Access Token.
4. Generate a long lived token for your installation on this page.
1. (Required) Set the label & live time of your token. You have ten years entered by default.
2. (Required) Set the Lifetime Spending Limits of the token. You may set a maximum of 100000000 for all coins.
3. (Required) Enter the unique IP address of your server where the BitGo Express has been installed. (see above)
4. (Required) Grant the token all permissions as shown below