mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-08 16:49:02 +03:00
[PR #550] [CLOSED] feat: add HSTS support #636
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/sigoden/dufs/pull/550
Author: @alth0
Created: 2/22/2025
Status: ❌ Closed
Base:
main← Head:main📝 Commits (2)
7197e4aUpdate args.rs, auth.rs and server.rsde744e8Update args.rs📊 Changes
3 files changed (+33 additions, -0 deletions)
View changed files
📝
src/args.rs(+15 -0)📝
src/auth.rs(+6 -0)📝
src/server.rs(+12 -0)📄 Description
An optional HSTS (HTTP Strict Transport Security) header has been added to the auth and internal response. This header can be enabled with the --enable-hsts flag or enable-hsts: true in the YAML config.
Browser HSTS enforcement duration is set to 1 year.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.