diff --git a/apps/element-web/1.11.83/data.yml b/apps/element-web/1.11.83/data.yml index a3642dea..15e403e1 100644 --- a/apps/element-web/1.11.83/data.yml +++ b/apps/element-web/1.11.83/data.yml @@ -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 diff --git a/apps/element-web/1.11.83/scripts/init.sh b/apps/element-web/1.11.83/scripts/init.sh index a2dc6df3..cd438466 100644 --- a/apps/element-web/1.11.83/scripts/init.sh +++ b/apps/element-web/1.11.83/scripts/init.sh @@ -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" diff --git a/apps/minio/2024-10-29/data.yml b/apps/minio/2024-10-13/data.yml similarity index 100% rename from apps/minio/2024-10-29/data.yml rename to apps/minio/2024-10-13/data.yml diff --git a/apps/minio/2024-10-29/docker-compose.yml b/apps/minio/2024-10-13/docker-compose.yml similarity index 93% rename from apps/minio/2024-10-29/docker-compose.yml rename to apps/minio/2024-10-13/docker-compose.yml index 4807aaf3..3bca8090 100644 --- a/apps/minio/2024-10-29/docker-compose.yml +++ b/apps/minio/2024-10-13/docker-compose.yml @@ -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" diff --git a/apps/minio/2024-10-29/scripts/init.sh b/apps/minio/2024-10-13/scripts/init.sh similarity index 100% rename from apps/minio/2024-10-29/scripts/init.sh rename to apps/minio/2024-10-13/scripts/init.sh diff --git a/apps/minio/2024-10-29/scripts/uninstall.sh b/apps/minio/2024-10-13/scripts/uninstall.sh similarity index 100% rename from apps/minio/2024-10-29/scripts/uninstall.sh rename to apps/minio/2024-10-13/scripts/uninstall.sh diff --git a/apps/minio/2024-10-29/scripts/upgrade.sh b/apps/minio/2024-10-13/scripts/upgrade.sh similarity index 100% rename from apps/minio/2024-10-29/scripts/upgrade.sh rename to apps/minio/2024-10-13/scripts/upgrade.sh diff --git a/apps/synapse/1.118.0/data.yml b/apps/synapse/1.118.0/data.yml index 2de9091a..5ba56b15 100644 --- a/apps/synapse/1.118.0/data.yml +++ b/apps/synapse/1.118.0/data.yml @@ -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 diff --git a/apps/synapse/1.118.0/docker-compose.yml b/apps/synapse/1.118.0/docker-compose.yml index c8a95441..a39ff79b 100644 --- a/apps/synapse/1.118.0/docker-compose.yml +++ b/apps/synapse/1.118.0/docker-compose.yml @@ -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}