-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeno-ddns-over-https-client.sh
37 lines (24 loc) · 1.03 KB
/
deno-ddns-over-https-client.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
if [ -z "$APP_INTERFACE" ]; then
export APP_INTERFACE="true"
fi
echo "APP_INTERFACE:$APP_INTERFACE"
if [ -z "$APP_TOKEN" ]; then
export APP_TOKEN="************************************"
fi
echo "APP_TOKEN:$APP_TOKEN"
if [ -z "$APP_SERVE_PORT" ]; then
export APP_SERVE_PORT="48000"
fi
echo "APP_SERVE_PORT:$APP_SERVE_PORT"
if [ -z "$DDNS_DOMAIN" ]; then
export DDNS_DOMAIN="**********************"
fi
echo "DDNS_DOMAIN:$DDNS_DOMAIN"
cd /root/deno-ddns-over-https-client-main
rm deno.lock
while true
do
deno run -A --unstable-kv --unstable-net "run_ddns_interval_client.ts" "--name=$DDNS_DOMAIN" "--service_url=http://127.0.0.1:$APP_SERVE_PORT/dns_records" "--token=$APP_TOKEN" --private=true --public=true --tailscale=true --interfaces="$APP_INTERFACE"
done
# deno run -A "run_ddns_interval_client.ts" "--name=**********************" "--service_url=http://127.0.0.1:48000/dns_records" "--token=************************************" --private=true --public=true --tailscale=true --interfaces=true