add infra credentials setup (gitignored secrets, shared template)

This commit is contained in:
Azreen Jamal
2026-03-03 03:01:54 +08:00
parent f832b913d5
commit 5e0d80daf9
3 changed files with 43 additions and 0 deletions

37
.claude/infra.md.example Normal file
View File

@@ -0,0 +1,37 @@
# Infrastructure Access — TEMPLATE
# Copy to .claude/infra.md and fill in real values.
# Share the real file via 1Password / Vault / `age` encrypted blob — NEVER commit it.
## Dokploy
- **Dashboard**: https://dokploy.example.com
- **API Token**: `dkp_...`
- **SSH User**: `deploy`
- **SSH Host**: `dokploy.example.com`
- **SSH Port**: `22`
- **SSH Key Path**: `~/.ssh/id_dokploy` ← or reference a 1Password SSH key
## Servers
| Name | IP / Host | SSH User | Notes |
|------------|------------------------|----------|----------------|
| prod-1 | 10.0.0.1 | deploy | primary node |
| staging-1 | 10.0.0.2 | deploy | staging node |
## Docker Registry
- **Registry**: `ghcr.io/your-org`
- **Username**: `bot`
- **Token**: `ghp_...`
## DNS / Cloudflare
- **API Token**: `cf_...`
- **Zone ID**: `...`
## Monitoring
- **Grafana URL**: https://grafana.example.com
- **API Key**: `eyJ...`
## Database
- **Prod Postgres**: `postgres://user:pass@host:5432/db`
- **Staging Postgres**: `postgres://user:pass@host:5432/db_staging`
## Other Secrets
<!-- Add anything else Claude Code needs to manage your infra -->