发布应用 Element Web
Signed-off-by: Meng Sen <qyg2297248353@gmail.com>
This commit is contained in:
parent
6b7c24c74f
commit
36e76a7a9f
|
|
@ -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"
|
||||
}
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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,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
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
# Element Web
|
||||
|
||||
一个用于Web的光泽Matrix协作客户端
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
## 简介
|
||||
|
||||
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'";
|
||||
```
|
||||
|
||||
### 移动客户端
|
||||
|
||||
[](https://apps.apple.com/us/app/element-messenger/id1083446067) [](https://play.google.com/store/apps/details?id=im.vector.app) [](https://f-droid.org/packages/im.vector.app/)
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
|
@ -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/
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 81 KiB |
|
|
@ -10,6 +10,10 @@ Synapse 是一个开源的 Matrix 家庭服务器实现,由 Element 开发和
|
|||
|
||||
本应用为 Synapse 服务器的管理工具,用于管理 Synapse 服务器的配置文件,用户,房间等信息。
|
||||
|
||||
### 移动客户端
|
||||
|
||||
[](https://apps.apple.com/us/app/element-messenger/id1083446067) [](https://play.google.com/store/apps/details?id=im.vector.app) [](https://f-droid.org/packages/im.vector.app/)
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 81 KiB |
|
|
@ -73,6 +73,10 @@ register_new_matrix_user http://localhost:8008 -c /data/homeserver.yaml -u userN
|
|||
}
|
||||
```
|
||||
|
||||
### 移动客户端
|
||||
|
||||
[](https://apps.apple.com/us/app/element-messenger/id1083446067) [](https://play.google.com/store/apps/details?id=im.vector.app) [](https://f-droid.org/packages/im.vector.app/)
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
|
|
|||
BIN
synapse/logo.png
BIN
synapse/logo.png
Binary file not shown.
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 81 KiB |
Loading…
Reference in New Issue