配置修复

Signed-off-by: Meng Sen <qyg2297248353@gmail.com>
This commit is contained in:
新疆萌森软件开发工作室 2024-10-31 15:39:05 +08:00
parent 2efd583faf
commit 1b928b2ce6
9 changed files with 98 additions and 3 deletions

View File

@ -15,3 +15,10 @@ additionalProperties:
required: true required: true
rule: paramPort rule: paramPort
type: number type: number
- default: "matrix.example.com"
edit: true
envKey: SYNAPSE_SERVER_NAME
labelZh: 服务域名
labelEn: Domain Name
required: false
type: text

View File

@ -13,6 +13,10 @@ if [ -f .env ]; then
mkdir -p "$ELEMENT_WEB_ROOT_PATH/config" mkdir -p "$ELEMENT_WEB_ROOT_PATH/config"
cp ./conf/config.sample.json "$ELEMENT_WEB_ROOT_PATH/config/config.json" 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 # setup-3 set permission
chmod -R 777 "$ELEMENT_WEB_ROOT_PATH" chmod -R 777 "$ELEMENT_WEB_ROOT_PATH"

View File

@ -4,7 +4,7 @@ networks:
services: services:
minio: 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} container_name: ${CONTAINER_NAME}
labels: labels:
createdBy: "Apps" createdBy: "Apps"

View File

@ -22,3 +22,85 @@ additionalProperties:
labelEn: Domain Name labelEn: Domain Name
required: true required: true
type: text 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

View File

@ -12,13 +12,15 @@ services:
env_file: env_file:
- /etc/1panel/envs/global.env - /etc/1panel/envs/global.env
- ${ENV_FILE:-/etc/1panel/envs/default.env} - ${ENV_FILE:-/etc/1panel/envs/default.env}
environment:
- SYNAPSE_REPORT_STATS=no
volumes: volumes:
- ${SYNAPSE_ROOT_PATH}/data:/data - ${SYNAPSE_ROOT_PATH}/data:/data
networks: networks:
- 1panel-network - 1panel-network
restart: no restart: no
environment:
- SYNAPSE_REPORT_STATS=no
- SYNAPSE_NO_TLS=true
- SYNAPSE_HTTP_PORT=8008
synapse: synapse:
image: matrixdotorg/synapse:v1.118.0 image: matrixdotorg/synapse:v1.118.0
container_name: ${CONTAINER_NAME} container_name: ${CONTAINER_NAME}