mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2024-11-28 13:16:13 +08:00
配置修复
Signed-off-by: Meng Sen <qyg2297248353@gmail.com>
This commit is contained in:
parent
2efd583faf
commit
1b928b2ce6
@ -15,3 +15,10 @@ additionalProperties:
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: "matrix.example.com"
|
||||
edit: true
|
||||
envKey: SYNAPSE_SERVER_NAME
|
||||
labelZh: 服务域名
|
||||
labelEn: Domain Name
|
||||
required: false
|
||||
type: text
|
||||
|
@ -13,6 +13,10 @@ if [ -f .env ]; then
|
||||
mkdir -p "$ELEMENT_WEB_ROOT_PATH/config"
|
||||
cp ./conf/config.sample.json "$ELEMENT_WEB_ROOT_PATH/config/config.json"
|
||||
|
||||
if [ -n "$SYNAPSE_SERVER_NAME" ]; then
|
||||
cp ./conf/config.sample.json "$ELEMENT_WEB_ROOT_PATH/config/config.$SYNAPSE_SERVER_NAME.json"
|
||||
fi
|
||||
|
||||
# setup-3 set permission
|
||||
chmod -R 777 "$ELEMENT_WEB_ROOT_PATH"
|
||||
|
||||
|
@ -4,7 +4,7 @@ networks:
|
||||
|
||||
services:
|
||||
minio:
|
||||
image: minio/minio:RELEASE.2024-10-29T16-01-48Z.fips
|
||||
image: minio/minio:RELEASE.2024-10-13T13-34-11Z.fips
|
||||
container_name: ${CONTAINER_NAME}
|
||||
labels:
|
||||
createdBy: "Apps"
|
@ -22,3 +22,85 @@ additionalProperties:
|
||||
labelEn: Domain Name
|
||||
required: true
|
||||
type: text
|
||||
- default: "50M"
|
||||
edit: true
|
||||
envKey: SYNAPSE_MAX_UPLOAD_SIZE
|
||||
labelZh: 最大上传文件大小
|
||||
labelEn: Maximum upload file size
|
||||
required: true
|
||||
type: text
|
||||
- default: "true"
|
||||
edit: true
|
||||
envKey: SYNAPSE_ENABLE_REGISTRATION
|
||||
labelZh: 注册功能
|
||||
labelEn: Enable registration
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: "允许注册"
|
||||
value: "true"
|
||||
- label: "禁止注册"
|
||||
value: "false"
|
||||
- default: "false"
|
||||
edit: true
|
||||
envKey: SYNAPSE_ALLOW_GUEST
|
||||
labelZh: 访客功能
|
||||
labelEn: Enable registration
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: "允许访客登录"
|
||||
value: "true"
|
||||
- label: "禁止访客登录"
|
||||
value: "false"
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: POSTGRES_HOST
|
||||
labelZh: 数据库 主机地址
|
||||
labelEn: Database Host
|
||||
required: false
|
||||
type: text
|
||||
- default: 5432
|
||||
edit: true
|
||||
envKey: POSTGRES_PORT
|
||||
labelZh: 数据库 端口
|
||||
labelEn: Database Port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: "synapse"
|
||||
edit: true
|
||||
envKey: POSTGRES_DB
|
||||
labelZh: 数据库 名称
|
||||
labelEn: Database Name
|
||||
required: true
|
||||
rule: paramCommon
|
||||
type: text
|
||||
- default: "synapse"
|
||||
edit: true
|
||||
envKey: POSTGRES_USER
|
||||
labelZh: 数据库 用户名
|
||||
labelEn: Database Username
|
||||
required: true
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: POSTGRES_PASSWORD
|
||||
labelZh: 数据库 密码
|
||||
labelEn: Database Password
|
||||
required: false
|
||||
type: password
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: SYNAPSE_RECAPTCHA_PUBLIC_KEY
|
||||
labelZh: reCAPTCHA 公钥
|
||||
labelEn: reCAPTCHA Public Key
|
||||
required: false
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: SYNAPSE_RECAPTCHA_PRIVATE_KEY
|
||||
labelZh: reCAPTCHA 私钥
|
||||
labelEn: reCAPTCHA Private Key
|
||||
required: false
|
||||
type: text
|
||||
|
@ -12,13 +12,15 @@ services:
|
||||
env_file:
|
||||
- /etc/1panel/envs/global.env
|
||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
||||
environment:
|
||||
- SYNAPSE_REPORT_STATS=no
|
||||
volumes:
|
||||
- ${SYNAPSE_ROOT_PATH}/data:/data
|
||||
networks:
|
||||
- 1panel-network
|
||||
restart: no
|
||||
environment:
|
||||
- SYNAPSE_REPORT_STATS=no
|
||||
- SYNAPSE_NO_TLS=true
|
||||
- SYNAPSE_HTTP_PORT=8008
|
||||
synapse:
|
||||
image: matrixdotorg/synapse:v1.118.0
|
||||
container_name: ${CONTAINER_NAME}
|
||||
|
Loading…
Reference in New Issue
Block a user