Sign inSign up

ubox/caddy

By ubox

Updated over 8 years ago

Unofficial caddy build

Image
0

958

ubox/caddy repository overview

Unofficial caddy build

Plugins:

  • http.ipfilter
  • http.prometheus
  • http.jwt
  • http.forwardproxy
You can run it this way
docker run -d --name caddy \
    --restart unless-stopped --net=host \
    -v $(pwd)/Caddyfile:/etc/caddy/Caddyfile \
    -v $(pwd)/www:/www \
    -v $(pwd)/certs:/root/.caddy \
    -p 80:80 -p 443:443 \
    ubox/caddy
with SSO
docker run -d --restart unless-stopped --net=host --name caddy \
    -v $(pwd)/Caddyfile:/etc/caddy/Caddyfile \
    -v $(pwd)/www:/www \
    -v $(pwd)/certs:/root/.caddy \
    -v $(pwd)/sso.pem:/etc/caddy/sso.pem \
    -p 80:80 -p 443:443 \
    ubox/caddy
The simplest config for static site
example.com {
    root /www
    gzip
}
The simplest proxy
europe1.example.com {
proxy / http://e1-live-mp3-128.scdn.arkena.com
}
Auth0 SSO
am.example.com {
    root /www
    gzip

errors {
        401 401.html
        403 403.html

}

proxy / 127.0.0.1:9093 {
        header_upstream -Token-Claim-HTTPS://SSO.example.com/APP_METADATA.AUTHORIZATION.GROUPS
        transparent

}

jwt {           path /
		strip_header
                allow https://sso.example.com/app_metadata.authorization.groups prom
                publickey /etc/caddy/sso.pem
}
}

Tag summary

Content type

Image

Digest

Size

9.1 MB

Last updated

over 8 years ago

docker pull ubox/caddy