Repository navigation
Expand file tree
/
Copy pathconfig.toml
More file actions
49 lines (39 loc) · 1.45 KB
/
Copy pathconfig.toml
File metadata and controls
49 lines (39 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# rust-web-fullstack workspace config
#
# Resolution order (highest priority wins):
# 1. RWF_* environment overrides. Nested keys use `__`.
# 2. This TOML file (or the path in RWF_CONFIG).
# 3. Typed defaults in crates/config.
#
# OpenTelemetry follows the standard OTEL_EXPORTER_OTLP_* environment
# variables directly and is intentionally not duplicated in this config tree.
[gateway]
# RWF_GATEWAY__PORT=4000
port = 3001
# RWF_GATEWAY__PROXY_UPSTREAM_URL=https://example.invalid
proxy_upstream_url = "https://ipapi.co"
# RWF_GATEWAY__SSE_BROADCAST_BUFFER=512
sse_broadcast_buffer = 256
# RWF_GATEWAY__REFRESH_TOKEN_TTL_SECS=2592000
refresh_token_ttl_secs = 2592000
# RWF_GATEWAY__ACCESS_TOKEN_TTL_SECS=900
access_token_ttl_secs = 900
[gateway.cors]
# RWF_GATEWAY__CORS__ALLOWED_ORIGINS=https://a.example,https://b.example
# Special value `*` is non-credentialed debug mode.
allowed_origins = "http://localhost:3000,http://localhost:3001,http://localhost:3002"
[gateway.session]
# RWF_GATEWAY__SESSION__COOKIE_SECURE=false
cookie_secure = true
[live_search]
# RWF_LIVE_SEARCH__PORT=3000
port = 3000
# RWF_LIVE_SEARCH__DATABASE_URL=postgres://...
database_url = "postgres://rwf:rwf_dev_password@localhost:5432/rwf_demo"
# Pool tunables are validated at startup: max > 0, min <= max, timeouts > 0.
pool_max_connections = 20
pool_min_connections = 2
pool_acquire_timeout_secs = 5
pool_idle_timeout_secs = 600
pool_max_lifetime_secs = 1800
sse_broadcast_buffer = 256