Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 1.03 KB

File metadata and controls

35 lines (26 loc) · 1.03 KB

cookiecrypt

http.handlers.cookiecrypt

Go Build Go Report Card

Caddy HTTP Middleware to encrypt/decrypt cookies in transit

Documentation

Install

This module can be built at Caddy's official site. To build locally, use xcaddy:

xcaddy build --with github.com/sebdroid/cookiecrypt

Sample Caddyfile

{
	order cookiecrypt before reverse_proxy
}

example.com {
	cookiecrypt {
		key "e7e05ca2229da9a74f3874f29933cde8"
		prefix "cookiecrypt_"
		allowlist "Cookie1" "Cookie2"
		denylist "Cookie3" "Cookie3"
	}
	reverse_proxy http://127.0.0.1:5173
}