mx-space / core

😎 The next generation of RESTful API service and more feature for Mix Space, powered by @nestjs.
Other
368 stars 108 forks source link

使用vercel作为前端绑定域名后,rss链接如何设置? #1993

Closed whitewatercn closed 3 months ago

whitewatercn commented 3 months ago

Describe the bug

主机运行后端,vercel运行前端shiro

主机上参考反向代理教程用1panel配置了单域名myblog.whitewater.wang,并完成反向代理,另外在vercel绑定域名blog.whitewater.wang,dns解析到vercel 现在前后端均可正常访问

myblog.whitewater.wang/feed 可以正常使用,但在站点blog.whitewater.wang 上点击订阅rss,会自动跳转到blog.whitewater.wang/feed ,这是一个无法访问的链接,请问接下来如何设置?

image

https://github.com/user-attachments/assets/41a8178c-68cc-455d-8537-1e15790bf96e

反向代理设置


server {
    listen 80;
    listen 443 ssl http2 ; 
    ## 绑定域名 
    server_name myblog.whitewater.wang; 
    index index.html; 
    proxy_set_header Host $host; 
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 
    proxy_set_header X-Forwarded-Host $server_name; 
    proxy_set_header Upgrade $http_upgrade; 
    proxy_set_header Connection "upgrade"; 
    error_log /www/sites/myblog.whitewater.wang/log/error.log;
    access_log /www/sites/myblog.whitewater.wang/log/access.log; 
    location /socket.io {
        proxy_set_header Upgrade $http_upgrade; 
        proxy_set_header Connection "Upgrade"; 
        proxy_set_header Host $host; 
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 
        proxy_set_header X-Forwarded-Proto $scheme; 
        proxy_pass http://127.0.0.1:2333/socket.io; 
    }
    location /api/v2 {
        proxy_pass http://127.0.0.1:2333/api/v2; 
    }
    location /render {
        proxy_pass http://127.0.0.1:2333/render; 
    }
    location / {
        proxy_pass http://127.0.0.1:2323; 
    }
    location /qaqdmin {
        proxy_pass http://127.0.0.1:2333/proxy/qaqdmin;
    }
    location /proxy {
        proxy_pass http://127.0.0.1:2333/proxy;
    }

    location ~* \/(feed|sitemap|atom.xml) {
        proxy_pass http://127.0.0.1:2333/$1; 
    }
    ssl_certificate /www/sites/myblog.whitewater.wang/ssl/fullchain.pem; 
    ssl_certificate_key /www/sites/myblog.whitewater.wang/ssl/privkey.pem; 
    ssl_protocols TLSv1.3 TLSv1.2 TLSv1.1 TLSv1; 
    ssl_ciphers 'ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!3DES:!MD5:!PSK'; 
    ssl_prefer_server_ciphers on; 
    ssl_session_cache shared:SSL:10m; 
    ssl_session_timeout 10m; 
    error_page 497 https://$host$request_uri; 
    limit_conn perserver 300; 
    limit_conn perip 25; 
    limit_rate 512k; 
}

后端相关设置

image

vercel相关设置

image

Reproduction

-

System Info

-

Validations

linear[bot] commented 3 months ago

MXD-144 使用vercel作为前端绑定域名后,rss链接如何设置?

Innei commented 3 months ago

看 vercel 的错误日志

Innei commented 3 months ago

此问题属于 Shiro 的 issue 范畴,因此关闭

whitewatercn commented 3 months ago

此问题属于 Shiro 的 issue 范畴,因此关闭

已在shiro重新提交 https://github.com/Innei/Shiro/issues/425