Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat]: implement zeronsd #63

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ services:
networks:
- app-network
ports:
- "9993:9993/udp"
- "9993:9993"
environment:
- ZT_OVERRIDE_LOCAL_CONF=true
- ZT_ALLOW_MANAGEMENT_FROM=172.31.255.0/29
Expand Down Expand Up @@ -57,6 +57,22 @@ services:
depends_on:
- postgres
- zerotier
zeronsd:
image: sinamics/zeronsd:latest
container_name: zeronsd
restart: unless-stopped
network_mode: host
# networks:
# - app-network
command: "start && cat /var/lib/zerotier-one/authtoken.secret"
volumes:
- zerotier:/var/lib/zerotier-one:ro
# depends_on:
# - zerotier
# - next_ztnet
environment:
ZEROTIER_CENTRAL_INSTANCE: "http://127.0.0.1:3000/api/zeronsd"
ZEROTIER_LOCAL_URL: http://127.0.0.1:9993

volumes:
zerotier:
Expand Down
6 changes: 6 additions & 0 deletions src/pages/api/zeronsd/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { type NextRequest, type NextResponse } from "next/server";

export default function handler(req: NextRequest, res: NextResponse) {
console.log("zeronds called!!!!!");
res.status(200).json({ name: "John Doe" });
}
Loading