Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e975d41c
authored
Jun 22, 2023
by
JustSong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: update README
parent
5c118a83
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
README.md
+4
-1
No files found.
README.md
View file @
e975d41c
...
@@ -154,7 +154,10 @@ sudo service nginx restart
...
@@ -154,7 +154,10 @@ sudo service nginx restart
2. 必须设置
`
SQL_DSN
`
,使用 MySQL 数据库而非 SQLite,所有服务器连接同一个数据库。
2. 必须设置
`
SQL_DSN
`
,使用 MySQL 数据库而非 SQLite,所有服务器连接同一个数据库。
3. 所有从服务器必须设置
`
SYNC_FREQUENCY
`
,以定期从数据库同步配置。
3. 所有从服务器必须设置
`
SYNC_FREQUENCY
`
,以定期从数据库同步配置。
4. 从服务器可以选择设置
`
FRONTEND_BASE_URL
`
,以重定向页面请求到主服务器。
4. 从服务器可以选择设置
`
FRONTEND_BASE_URL
`
,以重定向页面请求到主服务器。
5. 推荐每台服务器上都分别装好 Redis,设置好
`
REDIS_CONN_STRING
`
,这样可以做到在缓存未过期的情况下数据库零访问,可以减少延迟。
5. 从服务器上
**
分别
**
装好 Redis,设置好
`
REDIS_CONN_STRING
`
,这样可以做到在缓存未过期的情况下数据库零访问,可以减少延迟。
6. 如果主服务器访问数据库延迟也比较高,则也需要启用 Redis,并设置
`
SYNC_FREQUENCY
`
,以定期从数据库同步配置。
注意,设置
`
SYNC_FREQUENCY
`
后会导致从服务器的状态不会实时更新,而是定期同步。
环境变量的具体使用方法详见[此处]
(
#环境变量)。
环境变量的具体使用方法详见[此处]
(
#环境变量)。
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment