fix:Fix the issue of nginx address occupation during the process of obtaining ssl certificates using certbot

This commit is contained in:
david_bai
2025-08-20 23:47:32 +08:00
parent 6d82050081
commit 94c9ba7ad3
5 changed files with 16 additions and 67 deletions
+4 -2
View File
@@ -117,14 +117,16 @@ In production, Nginx will act as the entry point for all traffic, handling SSL t
```
Then, edit `frontend/.env.production` to set `NEXT_PUBLIC_API_URL` to your backend service domain (e.g., `https://privydrop.app`).
2. **Install Nginx:** It's recommended to install a newer version that supports HTTP/3.
2. **Install Nginx:**
```bash
sudo apt install -y nginx
```
3. **Firewall:**
Open 'Nginx Full' default ports and 443/udp:
```bash
sudo ufw allow 'Nginx Full'
sudo ufw allow 443/udp
sudo ufw reload # or ufw enable
```
+4 -3
View File
@@ -117,14 +117,15 @@ cd backend && npm run build && cd ..
```
然后编辑 `frontend/.env.production`,配置 `NEXT_PUBLIC_API_URL` 为您的后端服务域名 (例如 `https://privydrop.app`)。
2. **安装 Nginx:** 推荐安装支持 HTTP/3 的较新版本。
2. **安装 Nginx:**
```bash
sudo apt install -y nginx
```
3. **防火墙:**
打开'Nginx Full'默认端口以及 443/udp
```bash
sudo ufw allow 'Nginx Full'
sudo ufw allow 443/udp
sudo ufw reload # 或 ufw enable
```