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
fc8641eb
authored
Apr 26, 2023
by
JustSong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: update Nginx config (close #3)
parent
e779c3a6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
README.md
+4
-0
No files found.
README.md
View file @
fc8641eb
...
@@ -82,10 +82,14 @@ server{
...
@@ -82,10 +82,14 @@ server{
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_cache_bypass $http_upgrade;
proxy_cache_bypass $http_upgrade;
proxy_set_header Accept-Encoding gzip;
proxy_set_header Accept-Encoding gzip;
proxy_cache off; # 重要:关闭代理缓存
proxy_buffering off; # 重要:关闭代理缓冲
}
}
}
}
```
```
注意,为了 SSE 正常工作,需要关闭 Nginx 的代理缓存和缓冲。
之后使用 Let's Encrypt 的 certbot 配置 HTTPS:
之后使用 Let's Encrypt 的 certbot 配置 HTTPS:
```
bash
```
bash
# Ubuntu 安装 certbot:
# Ubuntu 安装 certbot:
...
...
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