Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force SSL + Forward SSL from Nginx to the container #167

Merged
merged 1 commit into from May 5, 2020
Merged

Conversation

viktorsmari
Copy link
Member

@viktorsmari viktorsmari commented Apr 30, 2020

Was causing http urls instead of https. see:
#166

Solution is to force use SSL, and forward it from Nginx to the container
See more: rails/rails#22965

If this works without problems, we can also update the auth container to use force_ssl = true

  • Remember to check the AUTH container after deployment

Was causing http urls instead of https. see:
#166

Solution is to force use SSL, and forward it from Nginx to the container
See more: rails/rails#22965
Copy link
Member

@pral2a pral2a left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Configuration looks fine. If it has been tested in staging I'm happy to merge

@viktorsmari viktorsmari merged commit dce24cc into master May 5, 2020
@pral2a
Copy link
Member

pral2a commented May 5, 2020

@viktorsmari one thing to check here I'm not entirely sure. You usually do SSL on NGINX to reduce the impact on your app layer (rails). Shouldn't we avoid enabling SSL on rails?

@pral2a
Copy link
Member

pral2a commented May 5, 2020

I read about it here and it looks like is not actually adding the SSL layer, it just looks like it tells the app it will be served over SSL and sets the correct headers, protocols, etc... isn't, it?

https://stackoverflow.com/questions/15676596/what-does-force-ssl-do-in-rails

@viktorsmari viktorsmari deleted the force-ssl branch September 25, 2020 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants