|YunMao 5173fc4103||5 mesi fa|
|.dockerignore||6 mesi fa|
|Caddyfile||6 mesi fa|
|Dockerfile||5 mesi fa|
|LICENSE||6 mesi fa|
|Readme.md||6 mesi fa|
|Readme_zh.md||6 mesi fa|
|builder.sh||5 mesi fa|
this is a docker image for Caddy. Thanks to abiosoft
the docker image from abiosoft has something wrong. I think it may have some wrong links/packages to get, and I try to use an unfriendly way to fix it.
go to the official website for plugins.(for filter as example)
click the ‘Full documentation’ in the website.
copy the packages/repository link as like
add it into ‘builder.sh’ following where you can see the word like that
(note: don’t foget the
_ in front of it)
as I know. some plugins you need do more things.(as cors for example).
do the same things like 1&2 in ‘nomally’
you can see
caddy folder in the repository, and in it there is a
open it can copy the content into
builder.sh.(you could see what I did, and just follow it to add other plugins like cors)
I use docker-compose to build the image.
caddy: build: context: ./caddy container_name: caddy environment: - TZ= - DNSPOD_API_KEY= - DNSPOD_HTTP_TIMEOUT=10 volumes: - ./caddy/data/Caddyfile:/caddy/Caddyfile - ./caddy/data/certs:/caddy/certs - ./caddy/data/.caddy:/root/.caddy - ./www:/www/:rw ports: - 2015:2015 - 80:80 - 443:443 restart: always networks: - net-default
you need change
context to where your Dockerfile is.
TZ is time zone.
if you use dnspod, you need
if you use cloudflare, you need
you can get it from cloudflare
you want to get ‘cloudflare’ plugins from it
then you can do like
specially to add it or to see how I add the