Closed coolaj86 closed 11 months ago
Caddy with Lego: https://caddyserver.com/download?package=github.com%2Fcaddy-dns%2Flego-deprecated
example.com {
tls {
dns lego_deprecated dnsimple
}
}
# to provide the token directly
export DNSIMPLE_OAUTH_TOKEN=xxxxxxxxx
# to provide the token from a file instead
export DNSIMPLE_OAUTH_TOKEN_FILE=/path/to/token.txt
You can put creds in a .env
and run with dotenv
:
dotenv -f .env -- caddy run --config Caddyfile
Caddy with DuckDNS: https://caddyserver.com/download?package=github.com%2Fcaddy-dns%2Fduckdns
example.duckdns.org {
tls {
dns duckdns xxxxxxxx-xxxx-4xxx-8xxx-xxxxxxxxxxxx
}
}
Or
example.duckdns.org {
tls {
dns duckdns {env.DUCKDNS_API_TOKEN}
}
}
dev.example.com {
header {
Link "<https://production.example.com{http.request.orig_uri}>; rel=\"canonical\""
X-Robots-Tag noindex
}
}
curl -I https://dev.example.com
HTTP/2 200
accept-ranges: bytes
content-type: text/html; charset=utf-8
etag: "xxxxxxxxxxxx"
last-modified: Mon, 13 Dec 2021 23:18:16 GMT
link: <https://production.example.com/>; rel="canonical"
server: Caddy
x-robots-tag: noindex
content-length: 4242
date: Fri, 04 Mar 2022 00:27:55 GMT
See
Included in #649
Needs how to run a quick-n-dirty local server: