From 96355ae3a4965dbddd2494adf442a2ae54b4c9af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9remy=20BRAGATO?= Date: Fri, 17 Apr 2026 17:45:44 +0200 Subject: [PATCH] vault backup: 2026-04-17 17:45:44 --- .obsidian/plugins/obsidian-git/data.json | 68 ++++++++++++++++++++++++ infra/vps-config-2026-04-17.md | 31 +++++++++++ 2 files changed, 99 insertions(+) create mode 100644 .obsidian/plugins/obsidian-git/data.json diff --git a/.obsidian/plugins/obsidian-git/data.json b/.obsidian/plugins/obsidian-git/data.json new file mode 100644 index 0000000..78a4ca7 --- /dev/null +++ b/.obsidian/plugins/obsidian-git/data.json @@ -0,0 +1,68 @@ +{ + "commitMessage": "vault backup: {{date}}", + "autoCommitMessage": "vault backup: {{date}}", + "commitMessageScript": "", + "commitDateFormat": "YYYY-MM-DD HH:mm:ss", + "autoSaveInterval": 1, + "autoPushInterval": 0, + "autoPullInterval": 1, + "autoPullOnBoot": false, + "autoCommitOnlyStaged": false, + "disablePush": false, + "pullBeforePush": true, + "disablePopups": false, + "showErrorNotices": true, + "disablePopupsForNoChanges": false, + "listChangedFilesInMessageBody": false, + "showStatusBar": true, + "updateSubmodules": false, + "syncMethod": "merge", + "mergeStrategy": "none", + "customMessageOnAutoBackup": false, + "autoBackupAfterFileChange": true, + "treeStructure": false, + "refreshSourceControl": true, + "basePath": "", + "differentIntervalCommitAndPush": true, + "changedFilesInStatusBar": false, + "showedMobileNotice": true, + "refreshSourceControlTimer": 7000, + "showBranchStatusBar": true, + "setLastSaveToLastCommit": false, + "submoduleRecurseCheckout": false, + "gitDir": "", + "showFileMenu": true, + "authorInHistoryView": "full", + "dateInHistoryView": true, + "diffStyle": "split", + "hunks": { + "showSigns": false, + "hunkCommands": false, + "statusBar": "disabled" + }, + "lineAuthor": { + "show": false, + "followMovement": "inactive", + "authorDisplay": "initials", + "showCommitHash": false, + "dateTimeFormatOptions": "date", + "dateTimeFormatCustomString": "YYYY-MM-DD HH:mm", + "dateTimeTimezone": "viewer-local", + "coloringMaxAge": "1y", + "colorNew": { + "r": 255, + "g": 150, + "b": 150 + }, + "colorOld": { + "r": 120, + "g": 160, + "b": 255 + }, + "textColorCss": "var(--text-muted)", + "ignoreWhitespace": false, + "gutterSpacingFallbackLength": 5, + "lastShownAuthorDisplay": "initials", + "lastShownDateTimeFormatOptions": "date" + } +} \ No newline at end of file diff --git a/infra/vps-config-2026-04-17.md b/infra/vps-config-2026-04-17.md index 20247e2..0e13796 100644 --- a/infra/vps-config-2026-04-17.md +++ b/infra/vps-config-2026-04-17.md @@ -200,3 +200,34 @@ Règles iptables dans la chaîne `DOCKER-USER` (la seule que Docker respecte) : - Accès VPN → **fonctionne** ✅ **Risque résiduel : 0** — Seuls les ports 80/443 (Traefik) et 2222 (SSH) sont accessibles depuis internet. Tout le reste est DROP. + + +--- + +## Addendum 2 — Vault Sync (même session) + +### Architecture sync + +``` +iPhone/iPad ←→ iCloud ←→ Mac (Obsidian) → Gitea → VPS (/home/jerem/vault) + commit+push auto pull auto /5 min + dès stop d'édition +``` + +### Config + +| Élément | Valeur | +|---|---| +| Plugin | Obsidian Git | +| Remote | ssh://git@10.66.66.1:222/Jerem/deamon-vault.git | +| Auto commit-and-sync | 1 minute | +| Auto commit after stop edit | ✅ activé | +| Auto pull | 1 minute | +| Clé SSH Mac | ~/.ssh/id_ed25519 (jerem@daemon) | +| Clé SSH VPS | ~/.ssh/id_ed25519 (jerem@vps) | +| VPS vault path | /home/jerem/vault | +| VPS cron pull | */5 * * * * (toutes les 5 min) | +| .gitignore | workspace.json, .trash/, .icloud, .DS_Store | + +### Sécurité Notion +- Mot de passe root supprimé de la page Phase 1 (était en clair)