发布应用 Element Web

Signed-off-by: Meng Sen <qyg2297248353@gmail.com>
This commit is contained in:
新疆萌森软件开发工作室 2024-10-31 12:52:36 +08:00
parent 1944d95962
commit 592add974d
15 changed files with 204 additions and 4 deletions

5
.github/README.md vendored
View File

@ -153,8 +153,9 @@
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/stream-rec/logo.png" width="22"/> | Stream-Rec | https://github.com/hua0512/stream-rec/ | Stream-rec是一个用于各种流媒体服务的自动流媒体录制工具 | |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/stream-rec/logo.png" width="22"/> | Stream-Rec Web版 | https://github.com/hua0512/stream-rec/ | 【前端版】Stream-rec是一个用于各种流媒体服务的自动流媒体录制工具 | |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/stream-rec/logo.png" width="22"/> | Stream-Rec 服务版 | https://github.com/hua0512/stream-rec/ | 【服务版】Stream-rec是一个用于各种流媒体服务的自动流媒体录制工具 | |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/synapse/logo.png" width="22"/> | Synapse | https://matrix.org/ | 用于安全、分散通信的开放网络 | |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/synapse/logo.png" width="22"/> | Synapse Admin | https://github.com/Awesome-Technologies/synapse-admin/ | 【管理面板】用于安全、分散通信的开放网络 | |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/synapse/logo.png" width="22"/> | Synapse | https://matrix.org/ | 用于安全、分散通信的开放网络 | Matrix |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/synapse/logo.png" width="22"/> | Synapse Admin | https://github.com/Awesome-Technologies/synapse-admin/ | 【管理面板】用于安全、分散通信的开放网络 | Matrix |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/element-web/logo.png" width="22"/> | Element Web | https://element.io/ | 一个用于Web的光泽Matrix协作客户端 | Matrix |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/tangsengdaodao/logo.png" width="22"/> | 唐僧叨叨 | https://tsdaodao.com/ | 让企业轻松拥有自己的即时通讯 | |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/teemii/logo.png" width="22"/> | Teemii | https://www.teemii.io/ | 漫画阅读器和管理器 | |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/telegram-bot-api/logo.png" width="22"/> | Telegram Bot Api | https://telegram.org/ | 自建 Telegram Bot API 服务器 | |

View File

@ -136,8 +136,9 @@
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/stream-rec/logo.png" width="22"/> | Stream-Rec | https://github.com/hua0512/stream-rec/ | Stream-rec是一个用于各种流媒体服务的自动流媒体录制工具 | |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/stream-rec/logo.png" width="22"/> | Stream-Rec Web版 | https://github.com/hua0512/stream-rec/ | 【前端版】Stream-rec是一个用于各种流媒体服务的自动流媒体录制工具 | |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/stream-rec/logo.png" width="22"/> | Stream-Rec 服务版 | https://github.com/hua0512/stream-rec/ | 【服务版】Stream-rec是一个用于各种流媒体服务的自动流媒体录制工具 | |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/synapse/logo.png" width="22"/> | Synapse | https://matrix.org/ | 用于安全、分散通信的开放网络 | |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/synapse/logo.png" width="22"/> | Synapse Admin | https://github.com/Awesome-Technologies/synapse-admin/ | 【管理面板】用于安全、分散通信的开放网络 | |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/synapse/logo.png" width="22"/> | Synapse | https://matrix.org/ | 用于安全、分散通信的开放网络 | Matrix |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/synapse/logo.png" width="22"/> | Synapse Admin | https://github.com/Awesome-Technologies/synapse-admin/ | 【管理面板】用于安全、分散通信的开放网络 | Matrix |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/element-web/logo.png" width="22"/> | Element Web | https://element.io/ | 一个用于Web的光泽Matrix协作客户端 | Matrix |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/tangsengdaodao/logo.png" width="22"/> | 唐僧叨叨 | https://tsdaodao.com/ | 让企业轻松拥有自己的即时通讯 | |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/teemii/logo.png" width="22"/> | Teemii | https://www.teemii.io/ | 漫画阅读器和管理器 | |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/telegram-bot-api/logo.png" width="22"/> | Telegram Bot Api | https://telegram.org/ | 自建 Telegram Bot API 服务器 | |

View File

@ -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"
}

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -0,0 +1,10 @@
#!/bin/bash
if [ -f .env ]; then
source .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi

View File

@ -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

View File

@ -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)

14
apps/element-web/data.yml Normal file
View File

@ -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/

BIN
apps/element-web/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

View File

@ -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)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 81 KiB

View File

@ -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)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 81 KiB