diff --git a/.github/README.md b/.github/README.md index be8352da0..7f3f929ba 100644 --- a/.github/README.md +++ b/.github/README.md @@ -153,8 +153,9 @@ | 🟢 | | Stream-Rec | https://github.com/hua0512/stream-rec/ | Stream-rec是一个用于各种流媒体服务的自动流媒体录制工具 | | | 🟢 | | Stream-Rec Web版 | https://github.com/hua0512/stream-rec/ | 【前端版】Stream-rec是一个用于各种流媒体服务的自动流媒体录制工具 | | | 🟢 | | Stream-Rec 服务版 | https://github.com/hua0512/stream-rec/ | 【服务版】Stream-rec是一个用于各种流媒体服务的自动流媒体录制工具 | | -| 🟢 | | Synapse | https://matrix.org/ | 用于安全、分散通信的开放网络 | | -| 🟢 | | Synapse Admin | https://github.com/Awesome-Technologies/synapse-admin/ | 【管理面板】用于安全、分散通信的开放网络 | | +| 🟢 | | Synapse | https://matrix.org/ | 用于安全、分散通信的开放网络 | Matrix | +| 🟢 | | Synapse Admin | https://github.com/Awesome-Technologies/synapse-admin/ | 【管理面板】用于安全、分散通信的开放网络 | Matrix | +| 🟢 | | Element Web | https://element.io/ | 一个用于Web的光泽Matrix协作客户端 | Matrix | | 🟢 | | 唐僧叨叨 | https://tsdaodao.com/ | 让企业轻松拥有自己的即时通讯 | | | 🟢 | | Teemii | https://www.teemii.io/ | 漫画阅读器和管理器 | | | 🟢 | | Telegram Bot Api | https://telegram.org/ | 自建 Telegram Bot API 服务器 | | diff --git a/README.md b/README.md index 7d4ae0078..baf061fa4 100644 --- a/README.md +++ b/README.md @@ -136,8 +136,9 @@ | 🟢 | | Stream-Rec | https://github.com/hua0512/stream-rec/ | Stream-rec是一个用于各种流媒体服务的自动流媒体录制工具 | | | 🟢 | | Stream-Rec Web版 | https://github.com/hua0512/stream-rec/ | 【前端版】Stream-rec是一个用于各种流媒体服务的自动流媒体录制工具 | | | 🟢 | | Stream-Rec 服务版 | https://github.com/hua0512/stream-rec/ | 【服务版】Stream-rec是一个用于各种流媒体服务的自动流媒体录制工具 | | -| 🟢 | | Synapse | https://matrix.org/ | 用于安全、分散通信的开放网络 | | -| 🟢 | | Synapse Admin | https://github.com/Awesome-Technologies/synapse-admin/ | 【管理面板】用于安全、分散通信的开放网络 | | +| 🟢 | | Synapse | https://matrix.org/ | 用于安全、分散通信的开放网络 | Matrix | +| 🟢 | | Synapse Admin | https://github.com/Awesome-Technologies/synapse-admin/ | 【管理面板】用于安全、分散通信的开放网络 | Matrix | +| 🟢 | | Element Web | https://element.io/ | 一个用于Web的光泽Matrix协作客户端 | Matrix | | 🟢 | | 唐僧叨叨 | https://tsdaodao.com/ | 让企业轻松拥有自己的即时通讯 | | | 🟢 | | Teemii | https://www.teemii.io/ | 漫画阅读器和管理器 | | | 🟢 | | Telegram Bot Api | https://telegram.org/ | 自建 Telegram Bot API 服务器 | | diff --git a/apps/element-web/1.11.83/conf/config.sample.json b/apps/element-web/1.11.83/conf/config.sample.json new file mode 100644 index 000000000..af170bfe5 --- /dev/null +++ b/apps/element-web/1.11.83/conf/config.sample.json @@ -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" +} diff --git a/apps/element-web/1.11.83/data.yml b/apps/element-web/1.11.83/data.yml new file mode 100644 index 000000000..a3642dea0 --- /dev/null +++ b/apps/element-web/1.11.83/data.yml @@ -0,0 +1,17 @@ +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 diff --git a/apps/element-web/1.11.83/docker-compose.yml b/apps/element-web/1.11.83/docker-compose.yml new file mode 100644 index 000000000..f2140e4d9 --- /dev/null +++ b/apps/element-web/1.11.83/docker-compose.yml @@ -0,0 +1,20 @@ +networks: + 1panel-network: + external: true + +services: + element-web: + image: vectorim/element-web:v1.11.83 + container_name: ${CONTAINER_NAME} + labels: + createdBy: "Apps" + restart: always + networks: + - 1panel-network + ports: + - ${PANEL_APP_PORT_HTTP}:80 + env_file: + - /etc/1panel/envs/global.env + - ${ENV_FILE:-/etc/1panel/envs/default.env} + volumes: + - ${KIMAI2_ROOT_PATH}/config/config.json:/app/config.json diff --git a/apps/element-web/1.11.83/scripts/init.sh b/apps/element-web/1.11.83/scripts/init.sh new file mode 100644 index 000000000..a2dc6df32 --- /dev/null +++ b/apps/element-web/1.11.83/scripts/init.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + # setup-1 add default values + CURRENT_DIR=$(pwd) + sed -i '/^ENV_FILE=/d' .env + echo "ENV_FILE=${CURRENT_DIR}/.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" + + # setup-3 set permission + chmod -R 777 "$ELEMENT_WEB_ROOT_PATH" + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/apps/element-web/1.11.83/scripts/uninstall.sh b/apps/element-web/1.11.83/scripts/uninstall.sh new file mode 100644 index 000000000..c86c4fbca --- /dev/null +++ b/apps/element-web/1.11.83/scripts/uninstall.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/apps/element-web/1.11.83/scripts/upgrade.sh b/apps/element-web/1.11.83/scripts/upgrade.sh new file mode 100644 index 000000000..77b849120 --- /dev/null +++ b/apps/element-web/1.11.83/scripts/upgrade.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + # setup-1 add default values + CURRENT_DIR=$(pwd) + sed -i '/^ENV_FILE=/d' .env + echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/apps/element-web/README.md b/apps/element-web/README.md new file mode 100644 index 000000000..909ac7b5f --- /dev/null +++ b/apps/element-web/README.md @@ -0,0 +1,38 @@ +# Element Web + +一个用于Web的光泽Matrix协作客户端 + +![Element Web](https://file.lifebus.top/imgs/element_web_cover.png) + +![](https://img.shields.io/badge/%E6%96%B0%E7%96%86%E8%90%8C%E6%A3%AE%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91%E5%B7%A5%E4%BD%9C%E5%AE%A4-%E6%8F%90%E4%BE%9B%E6%8A%80%E6%9C%AF%E6%94%AF%E6%8C%81-blue) + +## 简介 + +Element (formerly known as Vector and Riot) 是一个基于 Matrix JS SDK 构建的 Matrix 网络客户端。 + +## 反向代理 + +> Nginx +> +> 在无特殊需求的情况下,您需要添加如下参数 + +- `X-Frame-Options: SAMEORIGIN` 标头,用于防止 Element Web 被嵌入框架,以保护免受点击劫持攻击。 +- `Content-Security-Policy` 标头,添加 `frame-ancestors 'self'` 指令,作为 X-Frame-Options + 的现代替代方案(建议同时包含两者,因为并非所有浏览器都支持该指令。 +- `X-Content-Type-Options: nosniff` 标头,用于禁用 MIME 类型嗅探。 +- `X-XSS-Protection: 1; mode=block;` 标头,为旧版浏览器提供基础的 XSS 保护。 + +```nginx +add_header X-Frame-Options SAMEORIGIN; +add_header X-Content-Type-Options nosniff; +add_header X-XSS-Protection "1; mode=block"; +add_header Content-Security-Policy "frame-ancestors 'self'"; +``` + +### 移动客户端 + +[![Download on the App Store](http://www.tananaev.com/badges/app-store.svg)](https://apps.apple.com/us/app/element-messenger/id1083446067) [![Get it on Google Play](http://www.tananaev.com/badges/google-play.svg)](https://play.google.com/store/apps/details?id=im.vector.app) [![Get it on F-Droid](http://www.tananaev.com/badges/f-droid.svg)](https://f-droid.org/packages/im.vector.app/) + +--- + +![Ms Studio](https://file.lifebus.top/imgs/ms_blank_001.png) diff --git a/apps/element-web/data.yml b/apps/element-web/data.yml new file mode 100644 index 000000000..25220fc38 --- /dev/null +++ b/apps/element-web/data.yml @@ -0,0 +1,14 @@ +additionalProperties: + key: element-web + name: Element Web + tags: + - WebSite + - Local + shortDescZh: 一个用于Web的光泽Matrix协作客户端 + shortDescEn: A glossy Matrix collaboration client for the web. + type: website + crossVersionUpdate: true + limit: 0 + website: https://element.io/ + github: https://github.com/element-hq/element-web/ + document: https://element.io/user-guide/ diff --git a/apps/element-web/logo.png b/apps/element-web/logo.png new file mode 100644 index 000000000..8a92cb42a Binary files /dev/null and b/apps/element-web/logo.png differ diff --git a/apps/synapse-admin/README.md b/apps/synapse-admin/README.md index df68747f9..3c92a0007 100644 --- a/apps/synapse-admin/README.md +++ b/apps/synapse-admin/README.md @@ -10,6 +10,10 @@ Synapse 是一个开源的 Matrix 家庭服务器实现,由 Element 开发和 本应用为 Synapse 服务器的管理工具,用于管理 Synapse 服务器的配置文件,用户,房间等信息。 +### 移动客户端 + +[![Download on the App Store](http://www.tananaev.com/badges/app-store.svg)](https://apps.apple.com/us/app/element-messenger/id1083446067) [![Get it on Google Play](http://www.tananaev.com/badges/google-play.svg)](https://play.google.com/store/apps/details?id=im.vector.app) [![Get it on F-Droid](http://www.tananaev.com/badges/f-droid.svg)](https://f-droid.org/packages/im.vector.app/) + --- ![Ms Studio](https://file.lifebus.top/imgs/ms_blank_001.png) diff --git a/apps/synapse-admin/logo.png b/apps/synapse-admin/logo.png index 3cebddfa2..8a92cb42a 100644 Binary files a/apps/synapse-admin/logo.png and b/apps/synapse-admin/logo.png differ diff --git a/apps/synapse/README.md b/apps/synapse/README.md index 0c1b0d1af..a74a6fe92 100644 --- a/apps/synapse/README.md +++ b/apps/synapse/README.md @@ -73,6 +73,10 @@ register_new_matrix_user http://localhost:8008 -c /data/homeserver.yaml -u userN } ``` +### 移动客户端 + +[![Download on the App Store](http://www.tananaev.com/badges/app-store.svg)](https://apps.apple.com/us/app/element-messenger/id1083446067) [![Get it on Google Play](http://www.tananaev.com/badges/google-play.svg)](https://play.google.com/store/apps/details?id=im.vector.app) [![Get it on F-Droid](http://www.tananaev.com/badges/f-droid.svg)](https://f-droid.org/packages/im.vector.app/) + --- ![Ms Studio](https://file.lifebus.top/imgs/ms_blank_001.png) diff --git a/apps/synapse/logo.png b/apps/synapse/logo.png index 3cebddfa2..8a92cb42a 100644 Binary files a/apps/synapse/logo.png and b/apps/synapse/logo.png differ