-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.yaml
More file actions
48 lines (43 loc) · 1.51 KB
/
Copy pathconfig.example.yaml
File metadata and controls
48 lines (43 loc) · 1.51 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
oss:
# Server endpoint: used by the server for HeadObject, Delete, etc.
# Falls back to client_upload_endpoint if not set.
server_endpoint: ""
# Client upload endpoint (required): public S3-compatible endpoint for browser direct upload via presigned URL.
# Aliyun OSS: s3.oss-cn-hangzhou.aliyuncs.com
# AWS S3: s3.us-east-1.amazonaws.com
# MinIO: minio.example.com
client_upload_endpoint: "s3.oss-cn-hangzhou.aliyuncs.com"
# Client download endpoint: browser preview/download. CDN domain (with private bucket origin-pull) or public endpoint.
client_download_endpoint: ""
access_key_id: ""
access_key_secret: ""
bucket: ""
region: "cn-hangzhou"
max_presign_batch: 100 # max presigned URLs returned per presign request
server:
port: 8080
pid_file: "zephyr.pid"
cors_origins: "" # optional, comma-separated origins for CORS when frontend and backend use different origins
# example: "http://localhost:5173,https://zephyr.willvar.cn"
# session_secret and encryption_secret are auto-generated on first startup
# first startup root password: prefer a 0600 secret file; fallback env is ZEPHYR_ROOT_BOOTSTRAP_PASSWORD
root_bootstrap_password_file: ""
log:
level: "info"
file: "" # empty = stdout
database:
host: "localhost"
port: 5432
user: "postgres"
password: ""
dbname: "zephyr"
sslmode: "disable"
upload:
max_file_size: 10737418240 # 10GB
# SMTP (optional, required for email verification)
smtp:
host: ""
port: 465
username: ""
password: ""
from: ""