Skip to content

Commit 703e2d2

Browse files
committed
improve config structure
1 parent aa75ab2 commit 703e2d2

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

src/backend.md

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# W3Registrar Setup Guide
1+
# W3Registrar backend setup
22

33
## Prerequisites
44
- Redis server (not needed for Docker setup)
@@ -22,6 +22,7 @@ docker compose up -d
2222
## 2. Binary Installation
2323

2424
1. Create service user:
25+
2526
```bash
2627
sudo useradd -r -s /bin/false w3r
2728
sudo mkdir -p /etc/w3registrar
@@ -31,6 +32,7 @@ sudo chown -R w3r:w3r /etc/w3registrar
3132
2. Install binary:
3233
```bash
3334
# Download from releases page
35+
# https://github.com/rotkonetworks/w3registrar/releases/
3436
sudo cp w3registrar-* /usr/local/bin/w3registrar
3537
sudo chown w3r:w3r /usr/local/bin/w3registrar
3638
sudo chmod 755 /usr/local/bin/w3registrar
@@ -47,7 +49,7 @@ sudo chmod 600 /etc/w3registrar/config.toml
4749
```bash
4850
sudo tee /etc/systemd/system/w3registrar.service << EOF
4951
[Unit]
50-
Description=W3 Registrar Service
52+
Description=Identity Registrar Service
5153
After=network.target redis.service
5254
5355
[Service]
@@ -72,7 +74,7 @@ sudo systemctl enable --now w3registrar
7274
sudo apt install -y build-essential pkg-config libssl-dev git
7375

7476
# Build
75-
git clone https://github.com/your-repo/w3registrar.git
77+
git clone https://github.com/rotkonetworks/w3registrar.git
7678
cd w3registrar
7779
cargo build --release
7880

@@ -82,10 +84,13 @@ cargo build --release
8284
## Configuration Example
8385

8486
```toml
85-
[watcher]
86-
endpoint = "wss://dev.rotko.net/people-rococo/"
87-
registrar_index = 0
88-
keystore_path = "./keyfile"
87+
[registrar]
88+
89+
[registrar.polkadot]
90+
endpoint = "wss://people-polkadot.dotters.network" # people system chain
91+
registrar_index = 11 # your registrar index
92+
keystore_path = "./keyfile_polkadot" # IdentityJudgement proxy private key
93+
accountid = "1Ard..." # registrar public key
8994

9095
[websocket]
9196
host = "127.0.0.1"
@@ -96,10 +101,10 @@ host = "redis" # Use "redis" for Docker, "127.0.0.1" otherwise
96101
port = 6379
97102

98103
[matrix]
99-
homeserver = "https://matrix.org"
104+
homeserver = "https://matrix.beeper.com"
100105
username = "regbot"
101106
password = "your-password"
102-
security_key = "your-security-key"
107+
security_key = "EsTg A8Uh 9yFK 3uN1 16s6 WVDA gHLU kEid j9F1 iHt6 5V3u XSPs"
103108
admins = ["@admin:matrix.org"]
104109
```
105110

0 commit comments

Comments
 (0)