Skip to content

sebdroid/cookiecrypt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
}