chore: make codes the repository root

This commit is contained in:
Eric 1549169735@qq.com
2026-08-06 21:52:03 +08:00
parent de5345607a
commit 23c9f52869
89 changed files with 21 additions and 513 deletions

View File

@@ -0,0 +1,26 @@
app:
name: iqudo-top1
env: development
server:
host: 127.0.0.1
port: 8080
read_timeout: 10s
write_timeout: 20s
shutdown_timeout: 10s
database:
host: 127.0.0.1
port: 3306
name: iqudo_top1
user: root
password: ""
max_idle_connections: 10
max_open_connections: 40
connection_max_lifetime: 30m
auth:
jwt_secret: ""
access_token_ttl: 2h
refresh_token_ttl: 168h
seed:
admin_username: admin
admin_password: ""
admin_display_name: 平台管理员

11
configs/config.prod.yml Normal file
View File

@@ -0,0 +1,11 @@
app:
env: production
server:
host: 0.0.0.0
database:
max_idle_connections: 20
max_open_connections: 100
seed:
admin_username: ""
admin_password: ""
admin_display_name: ""

8
configs/config.test.yml Normal file
View File

@@ -0,0 +1,8 @@
app:
env: test
server:
port: 8081
database:
name: iqudo_top1_test
auth:
jwt_secret: test-only-secret

26
configs/config.yml Normal file
View File

@@ -0,0 +1,26 @@
app:
name: iqudo-top1
env: development
server:
host: 127.0.0.1
port: 8080
read_timeout: 10s
write_timeout: 20s
shutdown_timeout: 10s
database:
host: 127.0.0.1
port: 3306
name: iqudo_top1
user: root
password: root1234
max_idle_connections: 10
max_open_connections: 40
connection_max_lifetime: 30m
auth:
jwt_secret: local-development-secret-change-me
access_token_ttl: 2h
refresh_token_ttl: 168h
seed:
admin_username: admin
admin_password: admin123
admin_display_name: 平台管理员