DanielleNguyen commited on
Commit
204a829
·
verified ·
1 Parent(s): 319b9a1

Update config.yaml

Browse files
Files changed (1) hide show
  1. config.yaml +55 -56
config.yaml CHANGED
@@ -1,56 +1,55 @@
1
- server:
2
- host: "0.0.0.0"
3
- port: 7860
4
- mode: "release"
5
-
6
- database:
7
- host: "${DATABASE_HOST}"
8
- # Use Supabase PgBouncer port (6543) to reduce connection usage
9
- # Direct connection port is 5432, but PgBouncer is recommended for free tier
10
- port: 6543
11
- user: "${DATABASE_USER}"
12
- password: "${DATABASE_PASSWORD}"
13
- dbname: "${DATABASE_NAME}"
14
- sslmode: "require"
15
- # PgBouncer transaction mode: keep pool small
16
- max_open_conns: 20
17
- max_idle_conns: 5
18
- conn_max_lifetime_minutes: 10
19
- conn_max_idle_time_minutes: 3
20
-
21
- redis:
22
- host: "${REDIS_HOST}"
23
- port: 6379
24
- password: "${REDIS_PASSWORD}"
25
- db: 0
26
- enable_tls: true
27
-
28
- jwt:
29
- secret: "${JWT_SECRET}"
30
- expire_hour: 24
31
-
32
- totp:
33
- encryption_key: "${TOTP_ENCRYPTION_KEY}"
34
-
35
- default:
36
- admin_email: "${ADMIN_EMAIL}"
37
- admin_password: "${ADMIN_PASSWORD}"
38
- user_concurrency: 5
39
- user_balance: 0
40
- api_key_prefix: "sk-"
41
- rate_multiplier: 1.0
42
-
43
- log:
44
- level: "info"
45
- format: "console"
46
- output:
47
- to_stdout: true
48
- to_file: false
49
-
50
- run_mode: "standard"
51
-
52
- security:
53
- url_allowlist:
54
- enabled: false
55
- allow_insecure_http: false
56
- allow_private_hosts: false
 
1
+ server:
2
+ host: "0.0.0.0"
3
+ port: 7860
4
+ mode: "release"
5
+
6
+ database:
7
+ host: "${DATABASE_HOST}"
8
+ # Use direct connection port 5432 (not PgBouncer 6543)
9
+ # PgBouncer transaction mode does not support advisory locks needed for migrations
10
+ port: 5432
11
+ user: "${DATABASE_USER}"
12
+ password: "${DATABASE_PASSWORD}"
13
+ dbname: "${DATABASE_NAME}"
14
+ sslmode: "require"
15
+ max_open_conns: 20
16
+ max_idle_conns: 5
17
+ conn_max_lifetime_minutes: 10
18
+ conn_max_idle_time_minutes: 3
19
+
20
+ redis:
21
+ host: "${REDIS_HOST}"
22
+ port: 6379
23
+ password: "${REDIS_PASSWORD}"
24
+ db: 0
25
+ enable_tls: true
26
+
27
+ jwt:
28
+ secret: "${JWT_SECRET}"
29
+ expire_hour: 24
30
+
31
+ totp:
32
+ encryption_key: "${TOTP_ENCRYPTION_KEY}"
33
+
34
+ default:
35
+ admin_email: "${ADMIN_EMAIL}"
36
+ admin_password: "${ADMIN_PASSWORD}"
37
+ user_concurrency: 5
38
+ user_balance: 0
39
+ api_key_prefix: "sk-"
40
+ rate_multiplier: 1.0
41
+
42
+ log:
43
+ level: "info"
44
+ format: "console"
45
+ output:
46
+ to_stdout: true
47
+ to_file: false
48
+
49
+ run_mode: "standard"
50
+
51
+ security:
52
+ url_allowlist:
53
+ enabled: false
54
+ allow_insecure_http: false
55
+ allow_private_hosts: false