Skip to content

Certmagic S3-compatible driver written in Go | Caddy 证书存储 Certmagic 接口分布式对象存储实现

Notifications You must be signed in to change notification settings

let-sh/certmagic-s3

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CertMagic-S3

CertMagic S3-compatible driver written in Go.

Guide

Build

go get -u github.com/caddyserver/xcaddy/cmd/xcaddy

xcaddy build --output ./caddy --with github.com/ss098/certmagic-s3

Build container

FROM caddy:builder AS builder
RUN xcaddy build --with github.com/ss098/certmagic-s3 --with ...

FROM caddy
COPY --from=builder /usr/bin/caddy /usr/bin/caddy

Run

caddy run --config caddy.json

Caddyfile Example

# Global Config

{
    storage s3 {
        host "Host"
        bucket "Bucket"
        access_id "Access ID"
        secret_key "Secret Key"
        prefix "ssl"
        insecure false #disables SSL if true
    }
}

JSON Config Example

{
  "storage": {
    "module": "s3",
    "host": "Host",
    "bucket": "Bucket",
    "access_id": "Access ID",
    "secret_key": "Secret Key",
    "prefix": "ssl",
    "insecure": false
  }
  "app": {
    ...
  }
}

From Environment

S3_HOST
S3_BUCKET
S3_ACCESS_ID
S3_SECRET_KEY
S3_PREFIX
S3_INSECURE

About

Certmagic S3-compatible driver written in Go | Caddy 证书存储 Certmagic 接口分布式对象存储实现

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%