UI integration

This commit is contained in:
afeiszli 2021-05-30 08:04:40 -04:00
parent 3d4b07a47d
commit 990946e431
4 changed files with 13 additions and 3 deletions

View 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
}

View file

@ -0,0 +1,2 @@
190.123.112.1 somenode.skynet
1.2.3.4 doopy.skynet

Binary file not shown.

View file

@ -3,7 +3,7 @@
PUBKEY="DM5qhLAE20PG9BbfBCger+Ac9D2NDOwCtY1rbYDLf34="
IPADDR="69.173.21.202"
MACADDRESS="59:2a:9c:d4:e2:49"
ACCESSKEY="tMwl7zMLLnqP7sE5"
ACCESSKEY="F5LjPlgHHgi1zpir"
PASSWORD="ppppppp"
generate_post_json ()
@ -14,7 +14,7 @@ generate_post_json ()
"publickey": "$PUBKEY",
"macaddress": "$MACADDRESS",
"password": "$PASSWORD",
"localaddress": "172.16.16.1",
"localaddress": "172.123.123.3",
"accesskey": "$ACCESSKEY"
}
EOF
@ -22,5 +22,5 @@ EOF
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