Meteorjs帐户登录无效重定向网址

时间:2014-09-15 11:28:29

标签: amazon-ec2 meteor haproxy

我已在Amazon EC2中设置了meteorjs应用程序,并将其绑定到子域名(dev.xyz.com)。

我已经使用HAProxy的这些设置添加了HAProxy:

frontend www-http
        bind 0.0.0.0:80
        reqadd X-Forwarded-Proto:\ http
        default_backend www-backend

frontend www-https
        bind  0.0.0.0:443 ssl crt /home/ubuntu/haproxycert/host.pem
        reqadd X-Forwarded-Proto:\ https
        default_backend www-backend

backend www-backend
       redirect scheme https if !{ ssl_fc }
       #server www-1 171.30.0.185:80 check
        server www-1 127.0.0.1:3000 check

我在模板中添加了loginButtons,但是当我点击登录服务时,它将重定向网址设为http://xx.xxx.xxx.xx/_oauth/google?close,而不是  http://dev.xyz.com/_oauth/google?close

xx.xxx.xxx.xx是ec2实例的ip。

如果有人能指出我错过的内容或配置中的错误,我将非常感激。

0 个答案:

没有答案
相关问题