luoyangwei hai 1 ano
pai
achega
ee3e81bcd3
Modificáronse 5 ficheiros con 43 adicións e 41 borrados
  1. 6 41
      config.yaml
  2. 20 0
      data.yaml
  3. 7 0
      logger.yaml
  4. 5 0
      registry.yaml
  5. 5 0
      ucloud.yaml

+ 6 - 41
config.yaml

@@ -1,48 +1,13 @@
 server:
-    logger:
-        output: "./logs/output.log"
-        max_size: 1
-        max_backups: 5
-        max_age: 7 # 保留7天的日志
-        compress: false
     http:
         addr: 0.0.0.0:8000
         timeout: 60s
     grpc:
         addr: 0.0.0.0:9000
         timeout: 60s
-    websocket:
-        addr: 0.0.0.0:10000
-        keepalive: 600s # 心跳步长,到时见会清理 connection
-        writeTimeout: 30s # 写消息的时长
-        serverId: 0191b189-2cce-71b0-9737-1ec7270668ee
-    registry:
-        etcd:
-            endpoints:
-                - "127.0.0.1:2379"
-    secret_key: "01914b3fc77f753ba22e8c241d23bbdf"
-    ucloud:
-        project_id: "org-nclt2c"
-        public_key: "CrTX8Ns0UHJ4cco63pJUKmB9CZH1A6U4iIbp4lMPb"
-        private_key: "EcymFVXqE0eBwIN2eJ21Xb9uZcKu109B22SVCGIi5P46z93E9WnHSKG0TOBRihVKm"
-
-data:
-    database:
-        driver: mysql
-        source: root:9RKdJsEQKnjrni9R@tcp(106.75.230.4:13306)/w303a?parseTime=True&loc=Local
-    redis:
-        addr: 106.75.230.4:6379
-        password: sikey!Q@W#E456
-        read_timeout: 0.2s
-        write_timeout: 0.2s
-    mongo:
-        addr: mongodb://root:root%40123@127.0.0.1:27017/?maxPoolSize=20
-        database: w303a
-    rabbit_mq:
-        addr: amqp://gosys:gosys@localhost:5672//msg
-        queue: "msg_queue"
-        serverId: 0191b189-2cce-71b0-9737-1ec7270668ee
-    nats:
-        addr: nats://127.0.0.1:4222
-        messagePushCh: "msg_push"
-        messageBroadcastCh: "msg_broadcast"
+#    websocket:
+#        addr: 0.0.0.0:10000
+#        keepalive: 600s # 心跳步长,到时见会清理 connection
+#        writeTimeout: 30s # 写消息的时长
+#        serverId: 0191b189-2cce-71b0-9737-1ec7270668ee
+    secret_key: "01914b3fc77f753ba22e8c241d23bbdf"

+ 20 - 0
data.yaml

@@ -0,0 +1,20 @@
+data:
+    database:
+        driver: mysql
+        source: root:9RKdJsEQKnjrni9R@tcp(106.75.230.4:13306)/w303a?parseTime=True&loc=Local
+    redis:
+        addr: 106.75.230.4:6379
+        password: sikey!Q@W#E456
+        read_timeout: 0.2s
+        write_timeout: 0.2s
+    mongo:
+        addr: mongodb://root:root%40123@127.0.0.1:27017/?maxPoolSize=20
+        database: w303a
+    rabbit_mq:
+        addr: amqp://gosys:gosys@localhost:5672//msg
+        queue: "msg_queue"
+        serverId: 0191b189-2cce-71b0-9737-1ec7270668ee
+    nats:
+        addr: nats://127.0.0.1:4222
+        messagePushCh: "msg_push"
+        messageBroadcastCh: "msg_broadcast"

+ 7 - 0
logger.yaml

@@ -0,0 +1,7 @@
+server:
+    logger:
+        output: "./logs/output.log"
+        max_size: 1
+        max_backups: 5
+        max_age: 7 # 保留7天的日志
+        compress: false

+ 5 - 0
registry.yaml

@@ -0,0 +1,5 @@
+server:
+    registry:
+        etcd:
+            endpoints:
+                - "127.0.0.1:2379"

+ 5 - 0
ucloud.yaml

@@ -0,0 +1,5 @@
+server:
+    ucloud:
+        project_id: "org-nclt2c"
+        public_key: "CrTX8Ns0UHJ4cco63pJUKmB9CZH1A6U4iIbp4lMPb"
+        private_key: "EcymFVXqE0eBwIN2eJ21Xb9uZcKu109B22SVCGIi5P46z93E9WnHSKG0TOBRihVKm"