mirror of
https://github.com/gravitl/netmaker.git
synced 2025-12-11 14:57:29 +08:00
commit
6bb63cd12f
1 changed files with 4 additions and 4 deletions
|
|
@ -137,7 +137,7 @@ sed -i "s/YOUR_EMAIL/$EMAIL/g" /root/Caddyfile
|
||||||
|
|
||||||
echo "setting mosquitto.conf..."
|
echo "setting mosquitto.conf..."
|
||||||
|
|
||||||
wget -q -O /root/mosquitto.conf https://raw.githubusercontent.com/gravil/netmaker/master/docker/mosquitto.conf
|
wget -q -O /root/mosquitto.conf https://raw.githubusercontent.com/gravitl/netmaker/master/docker/mosquitto.conf
|
||||||
|
|
||||||
echo "setting docker-compose..."
|
echo "setting docker-compose..."
|
||||||
|
|
||||||
|
|
@ -190,7 +190,7 @@ sleep 2
|
||||||
echo "configuring netmaker server as ingress gateway"
|
echo "configuring netmaker server as ingress gateway"
|
||||||
|
|
||||||
curlresponse=$(curl -s -H "Authorization: Bearer $MASTER_KEY" -H 'Content-Type: application/json' localhost:8081/api/nodes/default)
|
curlresponse=$(curl -s -H "Authorization: Bearer $MASTER_KEY" -H 'Content-Type: application/json' localhost:8081/api/nodes/default)
|
||||||
SERVER_ID=$(jq -r '.[0].macaddress' <<< ${curlresponse})
|
SERVER_ID=$(jq -r '.[0].id' <<< ${curlresponse})
|
||||||
|
|
||||||
curl -o /dev/null -s -X POST -H "Authorization: Bearer $MASTER_KEY" -H 'Content-Type: application/json' localhost:8081/api/nodes/default/$SERVER_ID/createingress
|
curl -o /dev/null -s -X POST -H "Authorization: Bearer $MASTER_KEY" -H 'Content-Type: application/json' localhost:8081/api/nodes/default/$SERVER_ID/createingress
|
||||||
|
|
||||||
|
|
@ -224,7 +224,7 @@ sleep 2
|
||||||
echo "configuring netmaker server as vpn inlet..."
|
echo "configuring netmaker server as vpn inlet..."
|
||||||
|
|
||||||
curlresponse=$(curl -s -H "Authorization: Bearer $MASTER_KEY" -H 'Content-Type: application/json' localhost:8081/api/nodes/vpn)
|
curlresponse=$(curl -s -H "Authorization: Bearer $MASTER_KEY" -H 'Content-Type: application/json' localhost:8081/api/nodes/vpn)
|
||||||
SERVER_ID=$(jq -r '.[0].macaddress' <<< ${curlresponse})
|
SERVER_ID=$(jq -r '.[0].id' <<< ${curlresponse})
|
||||||
|
|
||||||
curl -s -o /dev/null -X POST -H "Authorization: Bearer $MASTER_KEY" -H 'Content-Type: application/json' localhost:8081/api/nodes/vpn/$SERVER_ID/createingress
|
curl -s -o /dev/null -X POST -H "Authorization: Bearer $MASTER_KEY" -H 'Content-Type: application/json' localhost:8081/api/nodes/vpn/$SERVER_ID/createingress
|
||||||
|
|
||||||
|
|
@ -240,7 +240,7 @@ echo "configuring netmaker server vpn gateway..."
|
||||||
echo "gateway iface: $GATEWAY_IFACE"
|
echo "gateway iface: $GATEWAY_IFACE"
|
||||||
|
|
||||||
curlresponse=$(curl -s -H "Authorization: Bearer $MASTER_KEY" -H 'Content-Type: application/json' localhost:8081/api/nodes/vpn)
|
curlresponse=$(curl -s -H "Authorization: Bearer $MASTER_KEY" -H 'Content-Type: application/json' localhost:8081/api/nodes/vpn)
|
||||||
SERVER_ID=$(jq -r '.[0].macaddress' <<< ${curlresponse})
|
SERVER_ID=$(jq -r '.[0].id' <<< ${curlresponse})
|
||||||
|
|
||||||
EGRESS_JSON=$( jq -n \
|
EGRESS_JSON=$( jq -n \
|
||||||
--arg gw "$GATEWAY_IFACE" \
|
--arg gw "$GATEWAY_IFACE" \
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue