[英]AWS EC2 instance with ELB for RAILS server SSL works but fail social login
I have a project set up on Amazon EC2 instance. 我在Amazon EC2实例上设置了一个项目。 I am using classic ELB for using aws ssl.
我正在使用经典ELB来使用aws ssl。 I have configured ELB correctly site is running on https.
我已经正确配置了ELB网站正在https上运行。 But after moving to ELB aws ssl, social login (Login with facebook/ Login with Google) starts to crash.
但是在转到ELB aws ssl后,社交登录(使用Facebook登录/使用Google登录)开始崩溃。 I have checked the log.
我已经检查了日志。 The issue is with callback URL.
问题出在回调URL上。 Now the url is as following:
现在,网址如下:
http :// mydomain.com:433/url...
where it should be 应该在哪里
https :// mydomin.com/url...
在production.rb中启用SSL。
config.force_ssl = true
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.