🐞 fix: Even more git fixes
This commit is contained in:
@@ -102,6 +102,7 @@ Ironpad can automatically sync the `data/` git repo with a private remote over S
|
||||
3. Set:
|
||||
- `IRONPAD_GIT_REMOTE_URL` (example: `git@github.com:your-org/ironpad-data.git`)
|
||||
- `IRONPAD_GIT_SSH_PRIVATE_KEY` (path inside container)
|
||||
- `IRONPAD_GIT_SSH_KNOWN_HOSTS` (optional; defaults to `/root/.ssh/known_hosts`)
|
||||
- `IRONPAD_GIT_SYNC_INTERVAL_SECS` (example: `300`)
|
||||
4. Recreate the stack:
|
||||
|
||||
@@ -112,6 +113,7 @@ docker compose up -d --build
|
||||
Sync behavior:
|
||||
- Every cycle: `fetch -> safe fast-forward if possible -> push`
|
||||
- If local and remote diverge, auto fast-forward is skipped and a warning is logged.
|
||||
- If libgit2 SSH auth fails, Ironpad can fall back to `git` CLI (controlled by `IRONPAD_GIT_USE_CLI_FALLBACK`, default `true`).
|
||||
|
||||
## Tech Stack
|
||||
|
||||
@@ -174,8 +176,10 @@ Read about the method:
|
||||
| Git sync interval | `0` (disabled) | Set `IRONPAD_GIT_SYNC_INTERVAL_SECS` to enable scheduled sync |
|
||||
| Git SSH private key | not set | `IRONPAD_GIT_SSH_PRIVATE_KEY` path to private key in container |
|
||||
| Git SSH public key | not set | Optional `IRONPAD_GIT_SSH_PUBLIC_KEY` path |
|
||||
| Git known_hosts path | `/root/.ssh/known_hosts` | Override with `IRONPAD_GIT_SSH_KNOWN_HOSTS` |
|
||||
| Git SSH username | `git` | Override with `IRONPAD_GIT_SSH_USERNAME` if needed |
|
||||
| Git SSH passphrase | not set | Optional `IRONPAD_GIT_SSH_PASSPHRASE` |
|
||||
| Git CLI fallback | `true` | `IRONPAD_GIT_USE_CLI_FALLBACK` for fetch/push auth fallback |
|
||||
| Auto-save | 1 second debounce | Frontend saves after typing stops |
|
||||
|
||||
## Documentation
|
||||
|
||||
Reference in New Issue
Block a user