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

Allow overriding Strict-Transport-Security #2904

Open
1 of 3 tasks
nazar-pc opened this issue Aug 12, 2023 · 2 comments
Open
1 of 3 tasks

Allow overriding Strict-Transport-Security #2904

nazar-pc opened this issue Aug 12, 2023 · 2 comments
Labels
type/enhancement Enhances existing functionality

Comments

@nazar-pc
Copy link

Environment & Version

Environment

  • docker compose
  • kubernetes
  • docker swarm

Version

  • Version: 2.0

Description

Currently Mailu adds Strict-Transport-Security:

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

But sometimes it is desirable to override that header to something stricter and even enable HSTS preloading, for which this would be necessary instead:

add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always;

Adding it on top results in two headers being added by Nginx, which is undesirable.

It'd be great if it wasn't necessary to override the whole Nginx config just for this.

@stale
Copy link

stale bot commented Sep 16, 2023

Issues not for bugs, enhancement requests or discussion go stale after 21 days of inactivity. This issue will be automatically closed after 14 days.
For all metrics refer to the stale.yml file.
Github issues are not meant for user support. For user-support questions, reach out on the matrix support channel.

Mark the issue as fresh by simply adding a comment to the issue.
If this issue is safe to close, please do so now.

@stale stale bot added the status/response_needed Waiting for a response from the author label Sep 16, 2023
@nazar-pc
Copy link
Author

Not stale

@stale stale bot removed the status/response_needed Waiting for a response from the author label Sep 16, 2023
@Diman0 Diman0 added the type/enhancement Enhances existing functionality label Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement Enhances existing functionality
Projects
None yet
Development

No branches or pull requests

2 participants