修复配置

Signed-off-by: Meng Sen <qyg2297248353@gmail.com>
This commit is contained in:
2024-10-29 11:57:59 +08:00
parent 3574f6628a
commit 8ef47d2445
4 changed files with 47 additions and 0 deletions
+19
View File
@@ -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
+11
View File
@@ -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
+15
View File
@@ -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)