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
fb608980
authored
Apr 25, 2023
by
JustSong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: update deploy tutorial
parent
fc637f20
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletions
+11
-1
README.md
+11
-1
No files found.
README.md
View file @
fb608980
...
...
@@ -86,7 +86,17 @@ server{
}
```
推荐使用 Let's Encrypt 配置 HTTPS。
之后使用 Let's Encrypt 的 certbot 配置 HTTPS:
```
bash
# Ubuntu 安装 certbot:
sudo
snap install
--classic
certbot
sudo
ln
-s
/snap/bin/certbot /usr/bin/certbot
# 生成证书 & 修改 Nginx 配置
sudo
certbot
--nginx
# 根据指示进行操作
# 重启 Nginx
sudo
service nginx restart
```
### 手动部署
1.
从
[
GitHub Releases
](
https://github.com/songquanpeng/one-api/releases/latest
)
下载可执行文件或者从源码编译:
...
...
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