vtacquet/caddy

By vtacquet

Updated 4 months ago

Caddy Proxy v2.8.4 with error pages and extensions (multi-arch amd64/arm64/armv7)

Image
Networking
0

80

Description:

Caddy Proxy v2.8.4 (multi-arch amd64/arm64/armv7)

with error pages in the /errors folder as 4xx.html or 5xx.html files (based on shuffle from https://github.com/tarampampam/error-pages)

use the following snippets in your Caddyfile (errors for internal webserver, upstream_errors for reverse proxy errors)

(errors) {
  handle_errors 4xx 5xx {
    root * /errors
    rewrite * /{err.status_code}.html
    file_server
  }
}

(upstream_errors) {
  @errors status 4xx 5xx
  handle_response @errors {
    root * /errors
    rewrite * /{rp.status_code}.html
    file_server
  }
}

and import the snippet in your site block

www.example.com {
  import errors
  root * /site
  file_server
}

reverseproxy.example.com {
  reverse_proxy something:8080 {
    import upstream_errors
  }
}

with the following extensions

github.com/mholt/caddy-dynamicdns
github.com/mholt/caddy-l4
github.com/mholt/caddy-webdav
github.com/mholt/caddy-ratelimit
github.com/caddy-dns/ovh
github.com/porech/caddy-maxmind-geolocation
github.com/oltdaniel/caddy-ipinfo-free
github.com/zhangjiayin/caddy-geoip2
github.com/sjtug/caddy2-filter
github.com/hslatman/caddy-crowdsec-bouncer
github.com/Javex/caddy-fail2ban
github.com/caddyserver/transform-encoder
github.com/muety/caddy-remote-host
github.com/caddyserver/cache-handler
github.com/darkweak/storages/otter/caddy

Docker Pull Command

docker pull vtacquet/caddy