dever 5 years ago
parent
commit
7d6e005a6a
2 changed files with 14 additions and 4 deletions
  1. 3 3
      src/docker/conf/iot.conf
  2. 11 1
      src/docker/conf/server.conf

+ 3 - 3
src/docker/conf/iot.conf

@@ -56,8 +56,8 @@ command = iot
 [ngrok]
 port = 8081:8081,4443:4443
 volumes = {container}src/python:/root/input,{container}web/apidoc:/root/output,{container}src/python/nongxiaohe/doc:/root/config
-#使用dm call iot-ngrok farm=f1来运行
+#客户端使用dm call iot-ngrok domain=m1来运行
 call = ngrok
 #-config="ngrok.cfg" 
-param = -subdomain="{$farm:f1}" -hostname="ngrok.dever.cc" {$port:8091}
-command = ngrokd -domain="ngrok.dever.cc" -httpAddr=":8081" -tunnelAddr=":4443"
+param = -subdomain="{$domain:f1}" -hostname="local.dever.cc" {$port:8091}
+command = ngrokd -domain="local.dever.cc" -httpAddr=":8081" -tunnelAddr=":4443"

+ 11 - 1
src/docker/conf/server.conf

@@ -38,4 +38,14 @@ port = 2049:2049/tcp,2049:2049/udp
 super = true
 volumes = /data/tt:/files
 command = nfs
-;mount -v -t nfs -o vers=4,port=2049 127.0.0.1:/ /mnt/nfs
+;mount -v -t nfs -o vers=4,port=2049 127.0.0.1:/ /mnt/nfs
+
+[ngrok]
+port = 8081:8081,4443:4443
+command = ngrokd -domain="local.dever.cc" -httpAddr=":8081" -tunnelAddr=":4443"
+
+[ngrok_client]
+image = ngrok
+#客户端使用dm call iot-ngrok domain=m1 port=8091来运行
+call = ngrok
+#param = -subdomain="{$domain:m1}" -hostname="local.dever.cc" {$port:8091}