1Panel/backend/app.yaml
2022-12-08 21:42:27 +08:00

41 lines
1.2 KiB
YAML

system:
port: 9999
db_type: sqlite
level: debug
data_dir: /opt/1Panel/data
app_oss: "https://1panel.oss-cn-hangzhou.aliyuncs.com/apps.json"
sqlite:
path: /opt/1Panel/data/db
db_file: 1Panel.db
log:
level: info
time_zone: Asia/Shanghai
path: /opt/1Panel/log
log_name: 1Panel
log_suffix: .log
log_backup: 10 #最大日志保留个数
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!!