@fabioplunser/epd 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -0
- package/dist/cli.js +577 -230
- package/docs/guide.md +24 -0
- package/package.json +2 -2
package/docs/guide.md
CHANGED
|
@@ -328,6 +328,30 @@ proxy:
|
|
|
328
328
|
dns_env: [CF_DNS_API_TOKEN]
|
|
329
329
|
```
|
|
330
330
|
|
|
331
|
+
### Cloudflare Automations & DNS Auto-Sync
|
|
332
|
+
`epd` can automatically keep Cloudflare DNS records in sync with your servers on every deploy and setup:
|
|
333
|
+
|
|
334
|
+
```yaml
|
|
335
|
+
cloudflare:
|
|
336
|
+
api_token: ${CLOUDFLARE_API_TOKEN}
|
|
337
|
+
# zone_id is optional; auto-detected from domain if omitted
|
|
338
|
+
proxied: true # default: true (orange cloud CDN/DDoS), or false (gray cloud / DNS-only)
|
|
339
|
+
ttl: 1 # default: 1 (auto)
|
|
340
|
+
auto_sync: true # default: true (auto sync on deploy and setup)
|
|
341
|
+
# domains: [custom.com] # optional; defaults to all domains in routes
|
|
342
|
+
```
|
|
343
|
+
|
|
344
|
+
CLI commands:
|
|
345
|
+
```bash
|
|
346
|
+
# Check status vs servers without modifying
|
|
347
|
+
epd cloudflare dns status
|
|
348
|
+
|
|
349
|
+
# Synchronize DNS records
|
|
350
|
+
epd cloudflare dns sync
|
|
351
|
+
epd cloudflare dns sync --dry-run
|
|
352
|
+
epd cloudflare dns sync --no-proxied
|
|
353
|
+
```
|
|
354
|
+
|
|
331
355
|
---
|
|
332
356
|
|
|
333
357
|
## 9. Secrets & Environment Management
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fabioplunser/epd",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Easy Project Deployer — deploy any project to one or many servers with Docker or PM2, fronted by Traefik.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Fabio Plünser",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"homepage": "https://github.com/FabioPlunser/epd#readme",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "
|
|
11
|
+
"url": "https://github.com/FabioPlunser/epd"
|
|
12
12
|
},
|
|
13
13
|
"bugs": {
|
|
14
14
|
"url": "https://github.com/FabioPlunser/epd/issues"
|