Skip to content

HeavyHorst/certmagic-nats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Certmagic Storage Backend for NATS KV

This library allows you to use NATS KV as a key/certificate storage backend for Certmagic.

Using it wit Caddy

Enable the nats storage module in your Caddyfile:

{ 
        storage nats {
                hosts "tls://nats01.example.com,tls://nats02.example.com,tls://nats03.example.com"      
                bucket "caddy_store"
                creds "/etc/caddy/caddy.creds"
                inbox_prefix "_CADDYINBOX"
                connection_name "caddy"
        }
} 

:443 {

}

Nats permissions

Pub Allow:

 $JS.API.CONSUMER.CREATE.KV_caddy_store                                                                               
 $JS.API.CONSUMER.DELETE.KV_caddy_store.>                                         
 $JS.API.STREAM.INFO.KV_caddy_store                                                
 $JS.API.STREAM.LIST                                                               
 $JS.API.STREAM.MSG.GET.KV_caddy_store                                             
 $JS.API.STREAM.NAMES                                                              
 $KV.caddy_store.>                     

Sub Allow
_CADDYINBOX.>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages