chuanyue-service/app.toml
2025-01-23 11:46:31 +08:00

36 lines
816 B
TOML

[server]
name = "chuanyue-server"
prefix_url = "/gm/v1"
port = 8000
debug = true
[logger]
dir = ".logger"
prefix = "tower_defense_server"
level = "DEBUG"
[database]
url = "postgres://lyj:B3a5kL9z!qQ@47.95.198.7:31000/chuanyue_gm"
options = { min_conns = 10, max_conns = 20, conn_timeout = 30, idle_timeout = 300, max_lifetime = 60, sql_logging = true }
[jwt]
token_secret = "chuanyue"
refresh_token_secret = "chuanyue"
expires = 1800
refresh_expires = 3600
[redis]
#url = "47.95.198.7:33000"
url = "127.0.0.1:33001"
password = "3aB7kRt9pDf1nQzW"
db = 0
[social.wechat]
app_id = "wxf0547aa24593a446"
app_secret = "e4a29192f9220d4d8c9eab37f8385c37"
[social.google]
client_id = "1000000000000-00000000000000000000000000000000.apps.googleusercontent.com"
client_secret = "GOCSPX-01234567890123456789012345678901"