This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Prerequisites | |
# - A Cloudflare account and a domain managed by Cloudflare. | |
# - The Zone ID of your domain in Cloudflare. You can find this in the Cloudflare dashboard under your domain's overview tab. | |
# - An API token with permissions to edit DNS records. You can create this in the Cloudflare dashboard under "My Profile" > "API Tokens". | |
# Creating an API Token in Cloudflare | |
# - Go to Cloudflare Dashboard > My Profile > API Tokens. | |
# - Click "Create Token". | |
# - Use the "Edit zone DNS" template. | |
# - Set permissions for the specific zone (domain) you wish to update via DDNS. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1. Create a worker in the dashboard and paste the following code into it | |
// 2. Replace all references to example.com to your domain, add more domains if needed | |
// 3. Deploy the worker | |
// 4. Setup routes in the dashboard for: | |
// - example.com/.well-known/openpgpkey/* | |
// - openpgpkey.example.com/.well-known/openpgpkey/* | |
// - (apply above for additional domains too) | |
// 5. Verify that it is working with https://metacode.biz/openpgp/web-key-directory | |
export default { |