Skip to content

Commit 5423d73

Browse files
committed
feat: update dependencies and add registry functionality
- Updated `ed25519-dalek` to version 2.2.0 with additional features. - Added `reqwest` dependency for HTTP requests. - Implemented health check endpoint in `root_controller`. - Introduced registry module with functionality to register nodes. - Enhanced main application to load and generate node keys, and register with the registry. - Created utility functions for managing node keys, including loading, generating, signing, and verifying messages. - Updated routing to include health check endpoint.
1 parent 4c41555 commit 5423d73

11 files changed

Lines changed: 880 additions & 19 deletions

File tree

.env.example

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
DATABASE_URL=postgres://user:password@localhost/dbname
22
JWT_SECRET="super_long_random_secret_64bytes"
33
SERVER_HOST="0.0.0.0"
4-
SERVER_PORT="8080"
4+
SERVER_PORT="8080"
5+
REGISTRY_URL="http://localhost:8081"
6+
NODE_NAME="node-eu1"
7+
NODE_HOST="host.docker.internal"
8+
NODE_API_URL="http://host.docker.internal:8080"
9+
CONTACT_EMAIL="ops@hushnet.net"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
target/
22
.env
3+
~/.hushnet/node_keys

0 commit comments

Comments
 (0)