mirror of
				https://github.com/songquanpeng/one-api.git
				synced 2025-11-04 15:53:42 +08:00 
			
		
		
		
	docs: update deploy tutorial
This commit is contained in:
		
							
								
								
									
										12
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								README.md
									
									
									
									
									
								
							@@ -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) 下载可执行文件或者从源码编译:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user