aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorAdam Mathes <adam@adammathes.com>2026-02-14 11:02:38 -0800
committerAdam Mathes <adam@adammathes.com>2026-02-14 11:02:38 -0800
commitb47721a02d3fdfb1b6a565df29c85e7c51d8c490 (patch)
treef9540e4f7e3a152fd3c9f86f484e97e42f13422f /config
parent5e24550cacd0f80ea4ec62dab873e747b2ae86b7 (diff)
downloadneko-b47721a02d3fdfb1b6a565df29c85e7c51d8c490.tar.gz
neko-b47721a02d3fdfb1b6a565df29c85e7c51d8c490.tar.bz2
neko-b47721a02d3fdfb1b6a565df29c85e7c51d8c490.zip
feat: add secure_cookies configuration option\n\n- Added SecureCookies bool field to config.Settings\n- Added --secure-cookies command line flag\n- Updated CSRFMiddleware to use config setting instead of hardcoded value\n- Default is false for local development, set to true for production HTTPS\n- Updated config.example and README.md with documentation\n- Updated tests to pass config to CSRFMiddleware\n\nThis allows users to easily switch between insecure cookies (for local dev)\nand secure cookies (for production HTTPS) via config file or command line.
Diffstat (limited to 'config')
-rw-r--r--config/config.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/config.go b/config/config.go
index 32e4b07..ad7ebd1 100644
--- a/config/config.go
+++ b/config/config.go
@@ -12,6 +12,7 @@ type Settings struct {
DigestPassword string `yaml:"password"`
CrawlMinutes int `yaml:"minutes"`
ProxyImages bool `yaml:"imageproxy"`
+ SecureCookies bool `yaml:"secure_cookies"`
}
var Config Settings