first commit
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
[app]
|
||||
port = 8666
|
||||
debug = true
|
||||
tokenTimeout = 43200
|
||||
jwtSecret = TaZT61grR6V7A4JAJZlX47mc89lGCKYo
|
||||
pwdSecret = oEjVsLBOtyMwxJRy2fXgM1ibfY9Paq6l
|
||||
emailHandleUrl = "http://8.210.153.118:8665/check"
|
||||
sendEmail= "wannengchongplatform@gmail.com"
|
||||
sendEmailPassword= "zP40vxfjDBmmgq229D55"
|
||||
noticeUrl = http://8.210.160.78:8066/notice/one
|
||||
|
||||
[mysql.system]
|
||||
;https://github.com/go-sql-driver/mysql
|
||||
host = 192.168.0.118
|
||||
port = 3306
|
||||
dbname = platform_system_db
|
||||
username = root
|
||||
password = YnHuUuYTSEdgv7
|
||||
charset = utf8mb4
|
||||
collation = utf8mb4_general_ci
|
||||
loc = Asia/Shanghai
|
||||
maxAllowedPacket = 8388608
|
||||
timeout = 30s
|
||||
readTimeout = 1m30s
|
||||
writeTimeout = 1m30s
|
||||
|
||||
[mysql.register]
|
||||
;https://github.com/go-sql-driver/mysql
|
||||
host = 192.168.0.118
|
||||
port = 3306
|
||||
dbname = platform_register_db
|
||||
username = root
|
||||
password = YnHuUuYTSEdgv7
|
||||
charset = utf8mb4
|
||||
collation = utf8mb4_general_ci
|
||||
loc = Asia/Shanghai
|
||||
maxAllowedPacket = 8388608
|
||||
timeout = 30s
|
||||
readTimeout = 1m30s
|
||||
writeTimeout = 1m30s
|
||||
|
||||
[redis.manage]
|
||||
;https://godoc.org/github.com/go-redis/redis#Options
|
||||
host = 127.0.0.1
|
||||
port = 6377
|
||||
password = nekopara999
|
||||
database = 0
|
||||
dialTimeout = 5
|
||||
readTimeout = 3
|
||||
writeTimeout = 3
|
||||
idleTimeout = 300
|
||||
poolSize = 10
|
||||
minIdleConns = 10
|
||||
@@ -0,0 +1,23 @@
|
||||
version: '2'
|
||||
|
||||
services:
|
||||
|
||||
platform_go:
|
||||
image: golang:latest
|
||||
container_name: client_go
|
||||
working_dir: /apps
|
||||
volumes:
|
||||
- ./config.ini:/apps/config.ini
|
||||
- ./client.bin:/apps/client.bin
|
||||
environment:
|
||||
TZ: "Asia/Shanghai"
|
||||
ports:
|
||||
- "8666:8666"
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "10240k"
|
||||
max-file: "10"
|
||||
network_mode: "bridge"
|
||||
command: ./client.bin
|
||||
restart: always
|
||||
Reference in New Issue
Block a user