1Panel/backend/app.yaml

41 lines
1.2 KiB
YAML
Raw Normal View History

2022-08-16 23:30:23 +08:00
system:
port: 9999
2022-09-08 12:06:53 +08:00
db_type: sqlite
2022-08-17 15:01:56 +08:00
level: debug
data_dir: /opt/1Panel/data
2022-10-14 14:48:55 +08:00
app_oss: "https://1panel.oss-cn-hangzhou.aliyuncs.com/apps.json"
2022-08-16 23:30:23 +08:00
sqlite:
path: /opt/1Panel/data/db
db_file: 1Panel.db
log:
level: info
time_zone: Asia/Shanghai
2022-08-16 23:30:23 +08:00
path: /opt/1Panel/log
log_name: 1Panel
log_suffix: .log
2022-12-08 21:27:49 +08:00
log_backup: 10 #最大日志保留个数
2022-08-16 23:30:23 +08:00
cache:
path: /opt/1Panel/data/cache
# 跨域配置
cors:
mode: whitelist # 放行模式: allow-all, 放行全部; whitelist, 白名单模式, 来自白名单内域名的请求添加 cors 头; strict-whitelist 严格白名单模式, 白名单外的请求一律拒绝
whitelist:
- allow-origin: example1.com
allow-headers: content-type
allow-methods: GET, POST
expose-headers: Content-Length, Access-Control-Allow-Origin, Access-Control-Allow-Headers, Content-Type
allow-credentials: true # 布尔值
- allow-origin: example2.com
allow-headers: content-type
allow-methods: GET, POST
expose-headers: Content-Length, Access-Control-Allow-Origin, Access-Control-Allow-Headers, Content-Type
allow-credentials: true # 布尔值
# 加密设置
encrypt:
key: 1Panel123@2022!!