https://github.com/zwimer/caddy-cloudflare
https://github.com/zwimer/caddy-cloudflare
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zwimer/caddy-cloudflare
- Owner: zwimer
- License: gpl-3.0
- Created: 2022-05-26T23:37:04.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-05-27T03:19:21.000Z (about 4 years ago)
- Last Synced: 2025-02-26T20:43:28.307Z (over 1 year ago)
- Language: Dockerfile
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# What
This is a docker image of caddy built with [caddy-dns/cloudflare](https://github.com/caddy-dns/cloudflare).
# Why
You can use this for many things, I use it mostly to add TLS to my website without using untrusted certs.
# How
It's very easy; generate an API key and fill in a few values!
1. Generate an API key that allows TLS certs to be configured; Cloudflare has instructions.
2. Fill in your API key in the `docker-compose.yml` file
3. Make a `./data` directory for persistence of generated certs
4. Change the domain to be published in the `Caddyfile` (e.g. `example.my_domain.com`)
5. Change the email the `Caddyfile`; caddy uses this email for the ACME account managing the site's certificates; you should be able to set it to your Cloudflare email)
6. Set what site you want to proxy in the `Caddyfile`. The example given is proxying `localhost:8000`.
7. `docker-compose up` or `docker compose up` depending on what you have installed.