-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
34 lines (25 loc) · 1.11 KB
/
Copy path.env.example
File metadata and controls
34 lines (25 loc) · 1.11 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
# HonoAdmin Bun runtime example.
# Copy this file to .env for local Bun/runtime deployment.
# SQLite file path, mysql://, mysql2://, postgres://, or postgresql://.
DATABASE_URL=./honox-admin.sqlite
# Used for admin time display and c.now().
APP_TIMEZONE=Asia/Shanghai
# Local memory cache namespace.
CACHE_NAMESPACE=honox-admin
# Reserved for API/JWT features. Use a strong random value, at least 16 chars.
JWT_SECRET=replace-with-a-strong-random-jwt-secret
# Used to sign admin session cookies. Keep it different from JWT_SECRET.
SESSION_SECRET=replace-with-a-strong-random-session-secret
# Optional: where the install page reads/writes Bun runtime config.
# HONO_ADMIN_ENV_FILE=/absolute/path/to/.env
# Optional request/upload limits.
REQUEST_BODY_LIMIT_BYTES=6291456
UPLOAD_IMAGE_LIMIT_BYTES=5242880
# Optional login throttling. Defaults: 30 attempts per IP and 10 per IP+account
# within 15 minutes. Successful login clears both buckets.
LOGIN_RATE_LIMIT_IP_MAX=30
LOGIN_RATE_LIMIT_ACCOUNT_MAX=10
LOGIN_RATE_LIMIT_WINDOW_SECONDS=900
# Optional admin API throttling.
API_RATE_LIMIT_MAX=120
API_RATE_LIMIT_WINDOW_SECONDS=60