From c584e61ac3b34aed9230cdb32c303bfaf0101e0f Mon Sep 17 00:00:00 2001 From: Daniel Krause Date: Thu, 21 May 2026 00:48:58 +0200 Subject: [PATCH] Add README and .gitignore --- .gitignore | 5 +++++ README.md | 31 +++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 .gitignore create mode 100644 README.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8866744 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +# Config mit API-Key +opencode.jsonc + +# Ausnahmen erzwingen +!importantopencode.jsonc \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..ccf878c --- /dev/null +++ b/README.md @@ -0,0 +1,31 @@ +# OpenCode Config Sync + +Gemeinsame opencode-Konfiguration für BSN-Team. + +## Nutzung + +1. **Repo clonen:** + ```bash + git clone http://185.162.249.159:3000/danielkrause/openwebui-config.git ~/.config/opencode + ``` + +2. **API-Key einsetzen:** + - Kopiere `opencode.jsonc.template` zu `opencode.jsonc` + - Ersetze `DEIN_API_KEY_HIER_EINFUEGEN` mit deinem OpenWebUI API-Key + - Den Key findest du in OpenWebUI unter **Profil → Settings → Account → API Keys** + +3. **Config aktualisieren:** + ```bash + cd ~/.config/opencode + # Bearbeite die config + git add -A && git commit -m "update" && git push + ``` + +4. **Auf anderen Geräten:** + ```bash + git pull + ``` + +## Hinweis + +Der API-Key sollte NICHT in das Repository commit werden. Die `.gitignore` ist bereits eingerichtet. \ No newline at end of file