parent
8fcd993ad4
commit
7d51299d34
|
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
随着微服务的流行,服务和服务之间的稳定性变得越来越重要。Sentinel是面向分布式、多语言异构化服务架构的流量治理组件,主要以流量为切入点,从流量路由、流量控制、流量整形、熔断降级、系统自适应过载保护、热点流量防护等多个维度来帮助开发者保障微服务的稳定性。
|
随着微服务的流行,服务和服务之间的稳定性变得越来越重要。Sentinel是面向分布式、多语言异构化服务架构的流量治理组件,主要以流量为切入点,从流量路由、流量控制、流量整形、熔断降级、系统自适应过载保护、热点流量防护等多个维度来帮助开发者保障微服务的稳定性。
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## 快速启动
|
## 快速启动
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,25 @@ additionalProperties:
|
||||||
required: true
|
required: true
|
||||||
rule: paramPort
|
rule: paramPort
|
||||||
type: number
|
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: ""
|
- default: ""
|
||||||
edit: true
|
edit: true
|
||||||
envKey: SHIORI_DATABASE_URL
|
envKey: SHIORI_DATABASE_URL
|
||||||
|
|
|
||||||
|
|
@ -21,3 +21,14 @@ services:
|
||||||
- ${SHIORI_ROOT_PATH}/data:/src/shiori
|
- ${SHIORI_ROOT_PATH}/data:/src/shiori
|
||||||
environment:
|
environment:
|
||||||
- SHIORI_DIR=/srv/shiori
|
- 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
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,9 @@ Shiori 是一款用 Go 语言编写的简单书签管理器,旨在作为 Pocke
|
||||||
|
|
||||||
## 安装说明
|
## 安装说明
|
||||||
|
|
||||||
|
> 默认用户名: `shiori`
|
||||||
|
> 默认密码: `gopher`
|
||||||
|
|
||||||
### `数据库链接 URL` 配置
|
### `数据库链接 URL` 配置
|
||||||
|
|
||||||
> 名词解释
|
> 名词解释
|
||||||
|
|
@ -44,6 +47,18 @@ Shiori 是一款用 Go 语言编写的简单书签管理器,旨在作为 Pocke
|
||||||
模板:`postgres://username:password@localhost:port/database?sslmode=disable`
|
模板:`postgres://username:password@localhost:port/database?sslmode=disable`
|
||||||
示例:`postgres://shiori:shiori@postgres/shiori?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;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||

|

|
||||||
|
|
|
||||||
Loading…
Reference in New Issue