config/config.php 中添加'overwriteprotocol' => 'https',
.
nginx 配置:
location / {
proxy_pass http://172.17.0.2/;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
这篇文章还没有人留言,快来抢沙发吧。