Skip to content

Caddy dynamic routing plugin, include rewrite host & dynamic ssl handshake.

Notifications You must be signed in to change notification settings

SakuraHentai/caddy-dynamic-routing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Caddy dynamic routing & certificate plugin

Usage

xcaddy build --with github.com/SakuraHentai/caddy-dynamic-routing

Syntax Example

See Caddyfile

Dev build

Run ./build.sh

Redis Data Structure

Use Hash with key ${prefix}:${host}, and field by tokenKey & certKey

Motivation

In the Saas business model, a tenant identifies their site by token, for example abc.example.com.

At this point, we would allow them to bind their own domain to their site, establishing a relationship between www.self-domain.com -> abc.example.com.

This is what routing does.

Using dynamic certificates instead of acme is more of a business model, such as selling ssl certificates.

About

Caddy dynamic routing plugin, include rewrite host & dynamic ssl handshake.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published