From 8ef47d2445b13981bea2f45ea267f836e21ebf3a Mon Sep 17 00:00:00 2001 From: Meng Sen Date: Tue, 29 Oct 2024 11:57:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Meng Sen --- apps/sentinel/README.md | 2 ++ apps/shiori/1.7.1/data.yml | 19 +++++++++++++++++++ apps/shiori/1.7.1/docker-compose.yml | 11 +++++++++++ apps/shiori/README.md | 15 +++++++++++++++ 4 files changed, 47 insertions(+) diff --git a/apps/sentinel/README.md b/apps/sentinel/README.md index f995209aa..2f12f8a0e 100644 --- a/apps/sentinel/README.md +++ b/apps/sentinel/README.md @@ -2,6 +2,8 @@ 随着微服务的流行,服务和服务之间的稳定性变得越来越重要。Sentinel是面向分布式、多语言异构化服务架构的流量治理组件,主要以流量为切入点,从流量路由、流量控制、流量整形、熔断降级、系统自适应过载保护、热点流量防护等多个维度来帮助开发者保障微服务的稳定性。 +![Sentinel Dashboard](https://file.lifebus.top/imgs/sentinel_dashboard_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) ## 快速启动 diff --git a/apps/shiori/1.7.1/data.yml b/apps/shiori/1.7.1/data.yml index 61789ce10..0de408e80 100644 --- a/apps/shiori/1.7.1/data.yml +++ b/apps/shiori/1.7.1/data.yml @@ -35,6 +35,25 @@ additionalProperties: required: true rule: paramPort type: number + - default: "True" + edit: true + envKey: SHIORI_HTTP_SERVE_WEB_UI + labelZh: 服务模式 + labelEn: Serve Mode + required: true + type: select + values: + - label: Web UI 模式 + value: "True" + - label: 仅限 API 模式 + value: "False" + - default: "" + edit: true + envKey: SHIORI_HTTP_SECRET_KEY + labelZh: Web UI 密钥 + labelEn: Web UI Secret Key + required: true + type: text - default: "" edit: true envKey: SHIORI_DATABASE_URL diff --git a/apps/shiori/1.7.1/docker-compose.yml b/apps/shiori/1.7.1/docker-compose.yml index 686da5a5f..89b7e7df5 100644 --- a/apps/shiori/1.7.1/docker-compose.yml +++ b/apps/shiori/1.7.1/docker-compose.yml @@ -21,3 +21,14 @@ services: - ${SHIORI_ROOT_PATH}/data:/src/shiori environment: - SHIORI_DIR=/srv/shiori + - SHIORI_DEVELOPMENT=False + - SHIORI_HTTP_ENABLED=True + - SHIORI_HTTP_PORT=8080 + - SHIORI_HTTP_ROOT_PATH=/ + - SHIORI_HTTP_ACCESS_LOG=True + - SHIORI_HTTP_BODY_LIMIT=1024 + - SHIORI_HTTP_READ_TIMEOUT=10s + - SHIORI_HTTP_WRITE_TIMEOUT=10s + - SHIORI_HTTP_IDLE_TIMEOUT=10s + - SHIORI_HTTP_DISABLE_KEEP_ALIVE=true + - SHIORI_HTTP_DISABLE_PARSE_MULTIPART_FORM=true diff --git a/apps/shiori/README.md b/apps/shiori/README.md index 16efbfb8b..dcbb50fe6 100644 --- a/apps/shiori/README.md +++ b/apps/shiori/README.md @@ -20,6 +20,9 @@ Shiori 是一款用 Go 语言编写的简单书签管理器,旨在作为 Pocke ## 安装说明 +> 默认用户名: `shiori` +> 默认密码: `gopher` + ### `数据库链接 URL` 配置 > 名词解释 @@ -44,6 +47,18 @@ Shiori 是一款用 Go 语言编写的简单书签管理器,旨在作为 Pocke 模板:`postgres://username:password@localhost:port/database?sslmode=disable` 示例:`postgres://shiori:shiori@postgres/shiori?sslmode=disable` +## 反向代理 + +> Nginx + +```nginx +location / { + proxy_pass http://localhost:8080/; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; +} +``` + --- ![Ms Studio](https://file.lifebus.top/imgs/ms_blank_001.png)