Skip to content

📦 A smaller Caddy docker image 14MB + (security header, gzip, cache, healthcheck, UPX)

License

Notifications You must be signed in to change notification settings

pascalandy/caddy-securityheader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Caddyfile config use case: I don’t use it as a proxy but only to host a static website. No auth or anything fancy here.

Why forking?

I maintained a fork of the official project because:

  • Cache is active
  • Run under alpine 3.8 (not scratch)
  • Added UPX
  • Added curl to do the healthcheck when docker service create. You must use healthcheck for serious orchestration.
  • Added tiny, init for containers
  • Removed exposing 80 443 as it's managed by Traefik (proxy). See my super-duper docker-stack for a better context.

Security Header screenshot

Get an A+ on security header out of the box.

Before I was using CloudFlare worker (5$ per month) to get the same result. I asked myself, how does a ‘real server’ is configured to manage the security-header? This is how.

screen shot 2018-12-06 at 7 48 19 pm

Smaller than the official image

More features, much lighter. In the screenshot, you see the uncompressed sized on my local machine.

screen shot 2018-12-07 at 12 11 25 am

Usage

Launch those three bash scripts from your terminal:

./runup.sh
./runup-caddyfile.sh (mount the Caddyfile)
./rundown.sh

About

📦 A smaller Caddy docker image 14MB + (security header, gzip, cache, healthcheck, UPX)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CSS 64.1%
  • HTML 23.2%
  • JavaScript 9.8%
  • Dockerfile 1.9%
  • Shell 1.0%
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy