Skip to content
This repository has been archived by the owner on Aug 5, 2021. It is now read-only.

redirect http->https and send HSTS for pypy #162

Merged
merged 2 commits into from
Mar 21, 2017
Merged

Conversation

alex
Copy link
Member

@alex alex commented Feb 14, 2017

No description provided.

ssl_certificate <%= @resource.ssl_certificate %>;
ssl_certificate_key <%= @resource.ssl_certificate_key %>;
<% end %>

add_header Strict-Transport-Security "max-age=31536000";

Choose a reason for hiding this comment

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

Hi @alex! :)

I'd qualify this also with an always so it is returned on non-200 status codes as well.

So just:

add_header Strict-Transport-Security "max-age=31536000" always;

Copy link
Member Author

Choose a reason for hiding this comment

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

Nice, done.

@MarkMangoba MarkMangoba self-assigned this Mar 21, 2017
@MarkMangoba MarkMangoba merged commit c0fe890 into python:master Mar 21, 2017
@alex alex deleted the patch-1 branch March 21, 2017 00:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants