Synced apps from source repository via GitHub Actions

This commit is contained in:
QYG2297248353
2024-12-04 03:08:24 +00:00
parent c472f6b912
commit e8d6cc738d
1394 changed files with 42558 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
# 数据持久化路径 [必填]
SYNAPSE_ROOT_PATH=/home/synapse
# 访问端口 [必填]
PANEL_APP_PORT_HTTP=8008
# 服务域名 [必填]
SYNAPSE_SERVER_NAME=matrix.example.com
+24
View File
@@ -0,0 +1,24 @@
additionalProperties:
formFields:
- default: "/home/synapse"
edit: true
envKey: SYNAPSE_ROOT_PATH
labelZh: 数据持久化路径
labelEn: Data persistence path
required: true
type: text
- default: 8008
edit: true
envKey: PANEL_APP_PORT_HTTP
labelZh: 访问端口
labelEn: Port
required: true
rule: paramPort
type: number
- default: "matrix.example.com"
edit: true
envKey: SYNAPSE_SERVER_NAME
labelZh: 服务域名
labelEn: Domain Name
required: true
type: text
+39
View File
@@ -0,0 +1,39 @@
networks:
1panel-network:
external: true
services:
synapse:
container_name: synapse
depends_on:
- synapse-init
env_file:
- ./envs/global.env
- .env
image: matrixdotorg/synapse:v1.120.2
labels:
createdBy: Apps
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:8008
restart: always
volumes:
- ${SYNAPSE_ROOT_PATH}/data:/data
synapse-init:
container_name: init-synapse
entrypoint:
- /start.py
- generate
env_file:
- ./envs/global.env
- .env
environment:
- SYNAPSE_REPORT_STATS=no
- SYNAPSE_NO_TLS=true
- SYNAPSE_HTTP_PORT=8008
image: matrixdotorg/synapse:v1.120.2
networks:
- 1panel-network
restart: false
volumes:
- ${SYNAPSE_ROOT_PATH}/data:/data
+2
View File
@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
ENV_FILE=.env
+2
View File
@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
TZ=Asia/Shanghai
+17
View File
@@ -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
+10
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
+17
View File
@@ -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
+82
View File
@@ -0,0 +1,82 @@
# Synapse
Synapse 是一个开源的 Matrix 家庭服务器实现,由 Element 开发和维护。Matrix 是安全且可互操作实时通信的开放标准。
![Synapse](https://file.lifebus.top/imgs/synapse_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)
## 安装说明
<div style="border: 1px solid red; padding: 10px; border-radius: 5px; color: #D8000C; background-color: #FFD2D2; display: inline-block; width: 100%; max-width: 60%;">
<div style="display: flex; align-items: center;">
<span style="font-size: 24px; margin-right: 8px;">⚠️</span>
<div>
<strong style="font-size: 16px;">配置初始化</strong><br>
<span style="font-size: 14px; color: #333;">该应用需要生成前置配置文件,如果首次生成失败,请删除持久化目录重试</span>
</div>
</div>
</div>
### 快捷命令
#### 查看帮助
```sh
register_new_matrix_user http://localhost:8008 -c /data/homeserver.yaml --help
```
#### 生成管理员用户
> 请替换以下参数
>
> adminName: 管理员用户名
>
> password: 管理员密码
```sh
register_new_matrix_user http://localhost:8008 -c /data/homeserver.yaml -u adminName -p password -a
```
#### 生成普通用户
> 请替换以下参数
>
> userName: 用户名
>
> password: 密码
```sh
register_new_matrix_user http://localhost:8008 -c /data/homeserver.yaml -u userName -p password
```
## 反向代理
> Nginx
```nginx
location ~ ^(/_matrix|/_synapse/client) {
# note: do not add a path (even a single /) after the port in `proxy_pass`,
# otherwise nginx will canonicalise the URI and cause signature verification
# errors.
proxy_pass http://localhost:8008;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $host;
# Nginx by default only allows file uploads up to 1M in size
# Increase client_max_body_size to match max_upload_size defined in homeserver.yaml
client_max_body_size 50M;
# Synapse responses may be chunked, which is an HTTP/1.1 feature.
proxy_http_version 1.1;
}
```
### 移动客户端
[![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)
+15
View File
@@ -0,0 +1,15 @@
additionalProperties:
key: synapse
name: Synapse
tags:
- WebSite
- Middleware
- Local
shortDescZh: 用于安全、分散通信的开放网络
shortDescEn: An open network for secure, decentralised communication
type: website
crossVersionUpdate: true
limit: 0
website: https://matrix.org/
github: https://github.com/matrix-org/synapse/
document: https://matrix.org/
Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB