Skip to content

Commit 651ea80

Browse files
authored
fix: remove rss proxy config (#23)
Signed-off-by: wuhang2003 <i@zwh.moe>
1 parent 28f9022 commit 651ea80

1 file changed

Lines changed: 1 addition & 17 deletions

File tree

content/docs/core/extra.mdx

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,6 @@ server{
5959
proxy_set_header REMOTE-HOST $remote_addr;
6060
expires 30d;
6161
}
62-
location ~* \/(feed|sitemap|atom.xml) {
63-
proxy_pass http://127.0.0.1:2333/$1;
64-
proxy_set_header Host $host;
65-
proxy_set_header X-Real-IP $remote_addr;
66-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
67-
proxy_set_header REMOTE-HOST $remote_addr;
68-
add_header X-Cache $upstream_cache_status;
69-
add_header Cache-Control max-age=60;
70-
}
7162
location / {
7263
proxy_pass http://127.0.0.1:2323;
7364
proxy_set_header Host $host;
@@ -127,10 +118,6 @@ server {
127118
location /qaqdmin {
128119
proxy_pass http://127.0.0.1:2333/proxy/qaqdmin;
129120
}
130-
## RSS 地址
131-
location ~* \/(feed|sitemap|atom.xml) {
132-
proxy_pass http://127.0.0.1:2333/$1;
133-
}
134121
## 反向代理结束
135122
}
136123
```
@@ -175,9 +162,6 @@ server {
175162
proxy_pass http://127.0.0.1:2333/proxy;
176163
}
177164
178-
location ~* \/(feed|sitemap|atom.xml) {
179-
proxy_pass http://127.0.0.1:2333/$1;
180-
}
181165
ssl_certificate /www/sites/www.example.com/ssl/fullchain.pem;
182166
ssl_certificate_key /www/sites/www.example.com/ssl/privkey.pem;
183167
ssl_protocols TLSv1.3 TLSv1.2 TLSv1.1 TLSv1;
@@ -331,4 +315,4 @@ module.exports = {
331315
332316
```bash
333317
pnpm prod:pm2
334-
```
318+
```

0 commit comments

Comments
 (0)