@
AirSc 关于这个重定向循环,并且你使用了 https,你需要让 Ghost(Node 后端知道浏览器在用 https 访问前端,也就是 Nginx)
前端(反代,Nginx,apache httpd...)需要向后端 Pass 一个 Request Header
X-Forwarded-Proto:https
For Nginx:
server {
listen 443 ssl http2;
server_name yourdomain.tld;
ssl on;
location / {
proxy_pass http://127.0.0.1:2369;
proxy_set_header X-Forwarded-For 'https';
......}
}
For Apache httpd
<VirtualHost *:443>
ServerName yourdomain.tld
ProxyPass / http://127.0.0.1:2369/
ProxyPassReverse / http://127.0.0.1:2369/
ProxyAddHeaders On
RequestHeader set X-Forwarded-Proto "https"
......
</VirtualHost>