Sign inSign up

guangie88/caddy-custom

By guangie88

•Updated about 6 years ago

An opinionated set-up to get no telemetry Caddy Docker image

Image
0

507

guangie88/caddy-custom repository overview

GitHub repo: https://github.com/guangie88/caddy-custom⁠

⁠caddy-custom

An opinionated set-up to get no telemetry Caddy Docker image with various sets of plugins.

⁠How to build Docker image

As an example, you will need to fill the following variables:

  • REPO_REV
  • PLUGINS

See the example run below for better idea:

# For PLUGINS, replace all dots with hyphens as shown below
REPO_REV=v1.0.0
PLUGINS=http-filter
docker build . \
    --build-arg REPO_REV=${REPO_REV} \
    --build-arg PLUGINS=${PLUGINS}

⁠How to generate Travis script from template

You will need tera, which you can get by either of the following methods:

⁠Method 1

Get cargo which you can get by install from https://rustup.rs/⁠.

Once cargo is available, run:

cargo install tera-cli

This works for most major operating systems.

⁠Method 2

If you are a Linux user, simply download from: https://github.com/guangie88/tera-cli/releases⁠

⁠How to generate updated plugins from template

You will need python3 to apply the update-plugins.py script.

Additionally, you will need to install pip packages via:

python3 -m pip install beautifulsoup4 pyyaml requests

To generate a new plugins.yml, run:

./update-plugins-py > plugins.yml

This is generally more for updating plugins.yml, since there should always be plugins.yml in the repo.

Tag summary

Content type

Image

Digest

Size

11.8 MB

Last updated

about 6 years ago

docker pull guangie88/caddy-custom:gzip-content-type_lite