[PR #549] [CLOSED] Add HSTS support #635

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/549
Author: @alth0
Created: 2/22/2025
Status: Closed

Base: mainHead: main


📝 Commits (3)

📊 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

This adds an optional HSTS (HTTP Strict Transport Security) header via enable-hsts: true in the config YAML or the --enable-hsts flag.

HSTS duration is set to 1 year for now.


🔄 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/549 **Author:** [@alth0](https://github.com/alth0) **Created:** 2/22/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (3) - [`121e6ee`](https://github.com/sigoden/dufs/commit/121e6eef76f124ab24043f6acd0f7bd697d55d89) Add files via upload - [`7e47ec6`](https://github.com/sigoden/dufs/commit/7e47ec60b32408e161a1855356e27f1aec301c40) Delete src/server.rs - [`3803bc6`](https://github.com/sigoden/dufs/commit/3803bc6a49f5a1035ea1edfe8dc720afe49144b3) Rename server.rs (1) to server.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 This adds an optional HSTS (HTTP Strict Transport Security) header via enable-hsts: true in the config YAML or the --enable-hsts flag. HSTS duration is set to 1 year for now. --- <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#635