Files
Vault Sovereign eac77ef7b4 Initial commit: VaultMesh Skills collection
Collection of operational skills for VaultMesh infrastructure including:
- backup-sovereign: Backup and recovery operations
- btc-anchor: Bitcoin anchoring
- cloudflare-tunnel-manager: Cloudflare tunnel management
- container-registry: Container registry operations
- disaster-recovery: Disaster recovery procedures
- dns-sovereign: DNS management
- eth-anchor: Ethereum anchoring
- gitea-bootstrap: Gitea setup and configuration
- hetzner-bootstrap: Hetzner server provisioning
- merkle-forest: Merkle tree operations
- node-hardening: Node security hardening
- operator-bootstrap: Operator initialization
- proof-verifier: Cryptographic proof verification
- rfc3161-anchor: RFC3161 timestamping
- secrets-vault: Secrets management

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-27 00:25:00 +00:00

37 lines
1.2 KiB
Bash

#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
SKILL_ROOT="$(dirname "$SCRIPT_DIR")"
source "$SCRIPT_DIR/_common.sh"
: "${MODE:=docker}"
: "${NODE_NAME:=node-b}"
: "${HTTP_PORT:=3000}"
: "${SSH_PORT:=2222}"
: "${DOMAIN:=}"
: "${DATA_DIR:=$HOME/gitea}"
: "${ADMIN_USER:=}"
: "${ADMIN_EMAIL:=}"
main() {
[[ -n "$ADMIN_USER" ]] || die "ADMIN_USER is required."
[[ -n "$ADMIN_EMAIL" ]] || die "ADMIN_EMAIL is required."
echo "[PLAN] $(date -Iseconds) Gitea Bootstrap ($MODE)"
echo "[PLAN] Node: $NODE_NAME"
echo "[PLAN] Data dir: $DATA_DIR"
echo "[PLAN] Web: http://<host>:$HTTP_PORT (or https://$DOMAIN via reverse proxy)"
if [[ "$MODE" == "docker" ]]; then
echo "[PLAN] SSH (git): <host>:$SSH_PORT (container maps to 22)"
echo "[PLAN] Will generate: outputs/compose.yml and outputs/gitea_app.ini"
echo "[PLAN] Will run: docker compose up -d"
else
echo "[PLAN] Native install: package + systemd"
echo "[PLAN] Will write: /etc/gitea/app.ini (backup first)"
fi
echo "[PLAN] Admin bootstrap:"
echo " username=$ADMIN_USER email=$ADMIN_EMAIL"
echo "[PLAN] Next: export DRY_RUN=0 && ./scripts/11_apply.sh"
}
main "$@"