-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfly.toml
More file actions
51 lines (42 loc) · 1.19 KB
/
Copy pathfly.toml
File metadata and controls
51 lines (42 loc) · 1.19 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
50
51
# fly.toml app configuration file generated for ai-portfolio
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
app = "ai-portfolio"
primary_region = "iad" # Change to your preferred region
[build]
dockerfile = "Dockerfile"
[env]
NODE_ENV = "production"
PORT = 8080
AI_PROVIDER = "gemini"
GEMINI_MODEL = "gemini-2.0-flash-exp"
# Rate Limiting
RATE_LIMIT_WINDOW_MS = 900000 # 15 minutes
RATE_LIMIT_MAX_REQUESTS = 100
MAX_REQUESTS_PER_IP = 12
IP_RATE_LIMIT_WINDOW_MS = 86400000 # 24 hours
MIN_REQUEST_INTERVAL_MS = 2000
ADMIN_IPS = "" # Comma-separated whitelist, if any
# Caching
CACHE_DURATION_MS = 172800000 # 48 hours
EMBEDDING_REQUEST_TIMEOUT_MS = 30000 # 30 seconds
[http_service]
internal_port = 8080
force_https = true
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 0
processes = ["app"]
[[http_service.checks]]
grace_period = "10s"
interval = "30s"
method = "GET"
timeout = "5s"
path = "/health"
[[vm]]
cpu_kind = "shared"
cpus = 1
memory_mb = 256
#[mounts]
#source="storage"
#destination="/app/server/storage"