[PR #550] [CLOSED] feat: add HSTS support #636

Closed
opened 2026-04-08 16:53:46 +03:00 by zhus · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/sigoden/dufs/pull/550
Author: @alth0
Created: 2/22/2025
Status: Closed

Base: mainHead: main


📝 Commits (2)

  • 7197e4a Update args.rs, auth.rs and server.rs
  • de744e8 Update 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.

## 📋 Pull Request Information **Original PR:** https://github.com/sigoden/dufs/pull/550 **Author:** [@alth0](https://github.com/alth0) **Created:** 2/22/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (2) - [`7197e4a`](https://github.com/sigoden/dufs/commit/7197e4ab78df4462cb031a023d5768a8907e3ed5) Update args.rs, auth.rs and server.rs - [`de744e8`](https://github.com/sigoden/dufs/commit/de744e8f36724ba300cef6ee1c62629b64824908) Update args.rs ### 📊 Changes **3 files changed** (+33 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/args.rs` (+15 -0) 📝 `src/auth.rs` (+6 -0) 📝 `src/server.rs` (+12 -0) </details> ### 📄 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
zhus added the pull-request label 2026-04-08 16:53:46 +03:00
zhus closed this issue 2026-04-08 16:53:46 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#636