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

Add HTTPS_ONLY env option to force secure-only connections #2275

Merged
merged 1 commit into from
Jun 18, 2024
Merged

Conversation

Floppy
Copy link
Collaborator

@Floppy Floppy commented Jun 18, 2024

setting HTTPS_ONLY=enabled in the env vars will enable:

  • HSTS connections
  • Secure cookie storage
  • Auto-redirection to HTTPS urls

Users should note that because of HSTS, going back to allowing insecure connections will be impossible until the timeout expires (which is I think 1 year)

Copy link

codeclimate bot commented Jun 18, 2024

Code Climate has analyzed commit aa87154 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 86.2% (0.0% change).

View more on Code Climate.

@Floppy Floppy merged commit 13c84ed into main Jun 18, 2024
10 checks passed
@Floppy Floppy deleted the force-ssl branch June 18, 2024 11:19
@Floppy Floppy changed the title Add FORCE_HTTPS env option to force secure-only connections Add HTTPS_ONLY env option to force secure-only connections Jun 18, 2024
@Floppy
Copy link
Collaborator Author

Floppy commented Jun 21, 2024

Verified working nicely on https://try.manyfold.app/ now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature User-facing features and product enhancements security
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant