This is the server component for the Bitcoin wallet Electrum's label synchronization feature.
There is a public node available at https://labels.bauerj.eu/.
A Docker file is included in the repository. You can pull it using docker pull maran/electrum-sync-server
and then start it using docker run -p 0.0.0.0:8080:8080 --rm -v $PWD:/data maran/electrum-sync-server
. You can change $PWD to a folder where you want to save the database file on the host.
This project is 'go get(able)' install Go and do go get -u github.com/maran/electrum-sync-server
.
Configuration happens via environment variables.
DBTYPE
: Database to use, possible values sqlite3, mysql or postgres.
DBDIR
: Directory to use for sqlite3 database.
DBUSER
: Postgres/MySQL user
DBPASSWORD
: Postgres/MySQL password
DBHOST
: Postgres/MySQL hostname
DBDATABASE
: Postgres/MySQL database
LISTENPORT
: Address to bind on. Format; ip:port