diff --git a/.gitignore b/.gitignore index 132b59e..1fdd133 100644 --- a/.gitignore +++ b/.gitignore @@ -6,7 +6,7 @@ SciencesServer *.exe *.test *.prof +config.yaml upload/* log/* cmd/ctl/ctl -./config.yaml \ No newline at end of file diff --git a/config.yaml b/config.yaml deleted file mode 100644 index d018a07..0000000 --- a/config.yaml +++ /dev/null @@ -1,71 +0,0 @@ -name: 中科元 -# domain 域名 -domain: http://192.168.0.145:8000 -# token有效时间(秒) -token_effect_time: 604800 -# multiple_login 多地登录 -multiple_login: true - -server: - port: 8000 - read_timeout: 5 - write_timeout: 5 - idle_timeout: 5 - -# RATE 限流器 -rate: - # 每秒注入容器中数量 - limit: 50 - # 每个IP每秒请求最大次数 - capacity: 100 - -# ENGINE 配置 -engine: - # 开启会输出sql日志 - debug: true - # db_mode - mysql | sqlite - db_mode: mysql - max_lifetime: 3600 - max_open_conns: 2000 - max_idle_conns: 1000 - table_prefix: - # 是否采用数据表复数 - complex: false - # MYSQL 配置 - mysql: -# host: 47.96.31.6 - host: 192.168.0.188 - port: 3306 - user: appuser - password: ABCabc01 - db_name: sciences - parameters: charset=utf8mb4,utf8&parseTime=True&loc=Local - # SQLITE 配置 - sqlite: - path: data - name: app.db - -cache: - # memory | redis - type: redis - redis: - addr: "192.168.0.188:6379" - password: ABCabc01 - db: 0 - max_active: 0 - max_idle: 1000 - idle_timeout: 240 - -# UPLOAD 上传文件配置 -upload: - path: upload/ - ext: png,jpg,csv,xls,xlsx,pcm,wav,amr,mp3,mp4,json - # size 4<<20,不支持位运算,文件最大限制 - size: 4194304 - rename: true - -#LOG 日志管理 -log: - file: log/logs.log - least_day: 7 - level: debug # debug | info | warn | error \ No newline at end of file diff --git a/keys/config.yaml b/keys/config.yaml deleted file mode 100644 index 539c3c5..0000000 --- a/keys/config.yaml +++ /dev/null @@ -1,24 +0,0 @@ -# RPCServer RPC服务 -servers: - HTTP: - # RPC 地址 - host: 127.0.0.1 - # RPC 端口 - port: 8084 - # RPC TLS验证 - is_tls: false - # RPC TLSName - tls_name: SQZN_SOCKET.RPC - # RPC pem秘钥 - pem: keys/rpc/socket/server.pem - MQTT: - # RPC 地址 - host: 127.0.0.1 - # RPC 端口 - port: 8084 - # RPC TLS验证 - is_tls: false - # RPC TLSName - tls_name: MQTT.RPC - # RPC pem秘钥 - pem: keys/rpc/mqtt/server.pem \ No newline at end of file