Synced apps from source repository via GitHub Actions

This commit is contained in:
QYG2297248353
2025-08-28 06:32:05 +00:00
parent 226fa3bed7
commit f507bb00b5
116 changed files with 14 additions and 14 deletions
+9
View File
@@ -0,0 +1,9 @@
# 数据持久化路径 [必填]
ELEMENT_WEB_ROOT_PATH=/home/element-web
# WebUI 端口 [必填]
PANEL_APP_PORT_HTTP=8080
# 服务域名
SYNAPSE_SERVER_NAME=riot.example.com
@@ -0,0 +1,53 @@
{
"default_server_config": {
"m.homeserver": {
"base_url": "https://matrix-client.matrix.org",
"server_name": "matrix.org"
},
"m.identity_server": {
"base_url": "https://vector.im"
}
},
"disable_custom_urls": false,
"disable_guests": false,
"disable_login_language_selector": false,
"disable_3pid_login": false,
"force_verification": false,
"brand": "Element",
"integrations_ui_url": "https://scalar.vector.im/",
"integrations_rest_url": "https://scalar.vector.im/api",
"integrations_widgets_urls": [
"https://scalar.vector.im/_matrix/integrations/v1",
"https://scalar.vector.im/api",
"https://scalar-staging.vector.im/_matrix/integrations/v1",
"https://scalar-staging.vector.im/api",
"https://scalar-staging.riot.im/scalar/api"
],
"default_widget_container_height": 280,
"default_country_code": "GB",
"show_labs_settings": false,
"features": {},
"default_federate": true,
"default_theme": "light",
"room_directory": {
"servers": [
"matrix.org"
]
},
"enable_presence_by_hs_url": {
"https://matrix.org": false,
"https://matrix-client.matrix.org": false
},
"setting_defaults": {
"breadcrumbs": true
},
"jitsi": {
"preferred_domain": "meet.element.io"
},
"element_call": {
"url": "https://call.element.io",
"participant_limit": 8,
"brand": "Element Call"
},
"map_style_url": "https://api.maptiler.com/maps/streets/style.json?key=fU3vlMsMn4Jb6dnEIFsx"
}
+24
View File
@@ -0,0 +1,24 @@
additionalProperties:
formFields:
- default: "/home/element-web"
edit: true
envKey: ELEMENT_WEB_ROOT_PATH
labelZh: 数据持久化路径
labelEn: Data persistence path
required: true
type: text
- default: 8080
edit: true
envKey: PANEL_APP_PORT_HTTP
labelZh: WebUI 端口
labelEn: WebUI port
required: true
rule: paramPort
type: number
- default: "riot.example.com"
edit: true
envKey: SYNAPSE_SERVER_NAME
labelZh: 服务域名
labelEn: Domain Name
required: false
type: text
@@ -0,0 +1,19 @@
networks:
1panel-network:
external: true
services:
element-web:
container_name: element-web
env_file:
- ./envs/global.env
- .env
image: vectorim/element-web:v1.11.110
labels:
createdBy: Apps
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:80
restart: always
volumes:
- ${ELEMENT_WEB_ROOT_PATH}/config/config.json:/app/config.json
@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
ENV_FILE=.env
@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
TZ=Asia/Shanghai
+29
View File
@@ -0,0 +1,29 @@
#!/bin/bash
if [ -f .env ]; then
source .env
# setup-1 add default values
CURRENT_DIR=$(pwd)
sed -i '/^ENV_FILE=/d' .env
sed -i '/^GLOBAL_ENV_FILE=/d' .env
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
# setup-2 copy config file
mkdir -p "$ELEMENT_WEB_ROOT_PATH"
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"
echo "Check Finish."
else
echo "Error: .env file not found."
fi
@@ -0,0 +1,10 @@
#!/bin/bash
if [ -f .env ]; then
source .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi
@@ -0,0 +1,17 @@
#!/bin/bash
if [ -f .env ]; then
source .env
# setup-1 add default values
CURRENT_DIR=$(pwd)
sed -i '/^ENV_FILE=/d' .env
sed -i '/^GLOBAL_ENV_FILE=/d' .env
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi