gemercheung 3 years ago
parent
commit
144058d7db
2 changed files with 55 additions and 0 deletions
  1. 51 0
      config.production2.yaml
  2. 4 0
      restart2.sh

+ 51 - 0
config.production2.yaml

@@ -0,0 +1,51 @@
+app:
+  prefix: /mnt/metaverse/scene
+  startPoint: 22
+  appId: '0000000008'
+# 141--->0000000007
+log:
+  logFolder: /var/log/metaverse
+
+queueConfig:
+  move: 60
+  rotate: 2
+  joystick: 5
+
+http:
+  host: '0.0.0.0'
+  port: 6688
+
+grpc:
+  url: '221.4.210.172:23000'
+# grpc:
+#   url: '192.168.0.47:3000'
+
+redis:
+  port: 6379
+  host: '127.0.0.1' #远程调试需要设置bindip 为0.0.0.0 并且设置密码
+  password: 'Happy@Pass#@!7' # 非远程不需要密码
+  decode_responses: true
+  db: 9
+# queueRedis:
+#   port: 6379
+#   host: '127.0.0.1' #远程调试需要设置bindip 为0.0.0.0 并且设置密码
+#   password: 'sxz123321SxZ@' # 非远程不需要密码
+#   decode_responses: true
+#   db: 14
+# server: ['stun:47.107.125.202:3478','stun:120.24.252.95:3478']
+#  server: ['stun:4dage:4dage168@47.107.125.202:3478','stun:120.24.252.95:3478']
+# ['turn:4dage:4dage168@turn.4dage.com:4478', 'stun:stun.callwithus.com:3478']
+stun:
+  # server: ['stun:stun.callwithus.com:3478', 'stun:47.107.125.202:3478']
+  server: ['stun:175.178.12.158:3478','stun:106.55.177.178:3478']
+  portRangeBegin: 49152
+  portRangeEnd: 65535
+
+server:
+  private_ip: 172.16.0.3
+  public_ip: 106.52.6.134
+# PRIVATE_IP=172.18.197.114
+# PUBLIC_IP=120.24.252.95
+# STUNS_SEVER="stun:172.18.156.41:3478,stun:120.24.252.95:3478"
+# GRPC_URL="192.168.0.48:3000"
+# REDIS_URL="redis://:192.168.0.47:6379/9"

+ 4 - 0
restart2.sh

@@ -0,0 +1,4 @@
+#! /bin/bash
+cp config.production2.yaml config.yaml
+npm run build
+NODE_ENV=production pm2 restart main