mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-08 22:24:17 +08:00
UI integration
This commit is contained in:
parent
3d4b07a47d
commit
990946e431
4 changed files with 13 additions and 3 deletions
8
config/dnsconfig/Corefile
Normal file
8
config/dnsconfig/Corefile
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
default comms skynet poopynet poopynet2 newnet {
|
||||||
|
reload 15s
|
||||||
|
hosts /root/dnsconfig/netmaker.hosts {
|
||||||
|
fallthrough
|
||||||
|
}
|
||||||
|
forward . 8.8.8.8 8.8.4.4
|
||||||
|
log
|
||||||
|
}
|
2
config/dnsconfig/netmaker.hosts
Normal file
2
config/dnsconfig/netmaker.hosts
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
190.123.112.1 somenode.skynet
|
||||||
|
1.2.3.4 doopy.skynet
|
BIN
controllers/.userHttpController.go.swp
Normal file
BIN
controllers/.userHttpController.go.swp
Normal file
Binary file not shown.
|
@ -3,7 +3,7 @@
|
||||||
PUBKEY="DM5qhLAE20PG9BbfBCger+Ac9D2NDOwCtY1rbYDLf34="
|
PUBKEY="DM5qhLAE20PG9BbfBCger+Ac9D2NDOwCtY1rbYDLf34="
|
||||||
IPADDR="69.173.21.202"
|
IPADDR="69.173.21.202"
|
||||||
MACADDRESS="59:2a:9c:d4:e2:49"
|
MACADDRESS="59:2a:9c:d4:e2:49"
|
||||||
ACCESSKEY="tMwl7zMLLnqP7sE5"
|
ACCESSKEY="F5LjPlgHHgi1zpir"
|
||||||
PASSWORD="ppppppp"
|
PASSWORD="ppppppp"
|
||||||
|
|
||||||
generate_post_json ()
|
generate_post_json ()
|
||||||
|
@ -14,7 +14,7 @@ generate_post_json ()
|
||||||
"publickey": "$PUBKEY",
|
"publickey": "$PUBKEY",
|
||||||
"macaddress": "$MACADDRESS",
|
"macaddress": "$MACADDRESS",
|
||||||
"password": "$PASSWORD",
|
"password": "$PASSWORD",
|
||||||
"localaddress": "172.16.16.1",
|
"localaddress": "172.123.123.3",
|
||||||
"accesskey": "$ACCESSKEY"
|
"accesskey": "$ACCESSKEY"
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
@ -22,5 +22,5 @@ EOF
|
||||||
|
|
||||||
POST_JSON=$(generate_post_json)
|
POST_JSON=$(generate_post_json)
|
||||||
|
|
||||||
curl --max-time 5.0 -d "$POST_JSON" -H 'Content-Type: application/json' -H "authorization: Bearer mastertoken" localhost:8081/api/skynet/nodes
|
curl --max-time 5.0 -d "$POST_JSON" -H 'Content-Type: application/json' -H "authorization: Bearer mastertoken" localhost:8081/api/nodes/skynet
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue