A golang server to sync electerm data.
Pull image:
docker pull giterhub/electerm-sync-server:latest
Create the compose.yaml
file and run:
docker compose up -d
Install git and Go locally and run:
# Clone project code
git clone https://github.com/dragonish/electerm-sync-server-go.git
# Enter project directory
cd electerm-sync-server-go
# Run
ELECTERM_JWT_SECRET=abcdef123 ELECTERM_JWT_USERS=user1 go run main.go
See: Custom sync server.
API URL: http://<domain>:7837/api/sync
.
Name | Type | Default | Description |
---|---|---|---|
ELECTERM_JWT_SECRET |
string |
"" |
JWT secret |
ELECTERM_JWT_USERS |
string |
"" |
JWT users. Multiple users separated by comma(, ) |
ELECTERM_PORT |
int |
7837 |
Web service running port |