modify scripts

This commit is contained in:
2025-03-14 15:27:03 +08:00
parent 089cb11f8c
commit a3dadecfc8
23 changed files with 110 additions and 369 deletions

28
conf/config.toml Normal file
View File

@ -0,0 +1,28 @@
[base]
jwt_secret = "mCTf-JhNRnhaaGJy_x"
bind_addr = ":80"
[log]
echo_log_file = "../log/echo.log"
log_file = "../log/app.log"
max_size = 500
max_backups = 3
max_age = 28
compress = true
level = "debug"
[azure_openai]
endpoint = "https://grammar.openai.azure.com/"
keys = "8b68c235b737488ab9a99983a14f8cca,0274ccde58aa47b189f0d13349885ad3"
gpt4_model = "gpt4"
gpt35_model = "gpt35"
[database]
mysql_conn = "testdb:3306"
mysql_user = "root"
mysql_pass = "mysqlpw"
#redis_conn = "172.18.0.4:6379"
redis_conn = "redis:6379"