mirror of
				https://github.com/songquanpeng/one-api.git
				synced 2025-11-04 15:53:42 +08:00 
			
		
		
		
	docs: update Nginx config (close #3)
This commit is contained in:
		@@ -82,10 +82,14 @@ server{
 | 
			
		||||
          proxy_set_header X-Forwarded-For $remote_addr;
 | 
			
		||||
          proxy_cache_bypass $http_upgrade;
 | 
			
		||||
          proxy_set_header Accept-Encoding gzip;
 | 
			
		||||
          proxy_cache off;  # 重要:关闭代理缓存
 | 
			
		||||
          proxy_buffering off;  # 重要:关闭代理缓冲
 | 
			
		||||
   }
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
注意,为了 SSE 正常工作,需要关闭 Nginx 的代理缓存和缓冲。
 | 
			
		||||
 | 
			
		||||
之后使用 Let's Encrypt 的 certbot 配置 HTTPS:
 | 
			
		||||
```bash
 | 
			
		||||
# Ubuntu 安装 certbot:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user