-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathconfig.example.yaml
More file actions
54 lines (46 loc) · 1.15 KB
/
Copy pathconfig.example.yaml
File metadata and controls
54 lines (46 loc) · 1.15 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
52
53
54
# iForge 配置文件示例
# 复制此文件为 config.yaml 并修改配置
# 服务器配置
server:
http_port: 8081
ssh_port: 2022
ssh_enabled: true
external_url: "http://localhost:8081"
# 数据库配置
# 支持: sqlite, mysql, postgres
database:
driver: "mysql" # 默认使用 mysql
# SQLite 配置(开发环境)
# driver: "sqlite"
# sqlite:
# path: "./data/iforge.db"
# MySQL 配置(生产环境默认)
mysql:
host: "localhost"
port: 3306
user: "iforge"
password: "iforge_password"
database: "iforge"
charset: "utf8mb4"
max_idle_conns: 10
max_open_conns: 30
# PostgreSQL 配置(生产环境可选)
# postgres:
# host: "localhost"
# port: 5432
# user: "iforge"
# password: "iforge_password"
# database: "iforge"
# sslmode: "disable"
# max_idle_conns: 10
# max_open_conns: 30
# Recycle long-lived network connections before infrastructure timeouts.
conn_max_lifetime_seconds: 1800
conn_max_idle_time_seconds: 300
# 日志配置
log:
level: "info" # debug, info, warn, error
path: "./logs"
# 仓库存储路径
repository:
path: "./repositories"