You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm hoping to get some guidance on how to properly configure the grails-force-ssl plugin. I have installed it on my application, but I do not observe the expected behavior. In other words, my requests that originate in https are resolved in http. For example (from firebug):
Config.groovy (I know this is the default, but I made it explicit just in case that would help - it didn't)
environments {
production {
...
grails.plugin.forceSSL.enabled = true
}
}
SocialMediaLinkController
@SSLRequired
@Transactional(readOnly = true)
class SocialMediaLinkController
...
The application is running on Tomcat behind Nginx in an AWS EC2 server. Nginx listens on port 80 for requests originating with the AWS load-balancer, that only listens on 443. Adding or editing a resource occurs successfully, but the redirect to '/index' or '/show' shows an 'unable to connect' error because it's redirecting to http and the load-balancer is only accepting https. It seems like this scenario is exactly what the force-ssl plugin is intended to resolve. What can I do to make this work?
thanks!
The text was updated successfully, but these errors were encountered:
I'm hoping to get some guidance on how to properly configure the grails-force-ssl plugin. I have installed it on my application, but I do not observe the expected behavior. In other words, my requests that originate in https are resolved in http. For example (from firebug):
BuildConfig.groovy
build.gradle (the war file I am deploying is built by Gradle)
Config.groovy (I know this is the default, but I made it explicit just in case that would help - it didn't)
SocialMediaLinkController
The application is running on Tomcat behind Nginx in an AWS EC2 server. Nginx listens on port 80 for requests originating with the AWS load-balancer, that only listens on 443. Adding or editing a resource occurs successfully, but the redirect to '/index' or '/show' shows an 'unable to connect' error because it's redirecting to http and the load-balancer is only accepting https. It seems like this scenario is exactly what the force-ssl plugin is intended to resolve. What can I do to make this work?
thanks!
The text was updated successfully, but these errors were encountered: