From 4bc0e1063177b5de1d0717b66b5c3cf7e3854212 Mon Sep 17 00:00:00 2001 From: Scrublord MacBad Date: Thu, 23 Apr 2026 18:18:15 +0200 Subject: [PATCH] fix: correct ConfigMap keys and mount structure for /docs/setup/ --- apps/production/element-server-suite.yaml | 3 +- .../element-web-docs-configmap.yaml | 112 +++--------------- 2 files changed, 17 insertions(+), 98 deletions(-) diff --git a/apps/production/element-server-suite.yaml b/apps/production/element-server-suite.yaml index f580a3b..c93df8d 100644 --- a/apps/production/element-server-suite.yaml +++ b/apps/production/element-server-suite.yaml @@ -66,9 +66,10 @@ spec: - name: element-web-docs configMap: name: ess-element-web-docs + defaultMode: 0644 volumeMounts: - name: element-web-docs - mountPath: /usr/share/nginx/html/docs + mountPath: /usr/share/nginx/html/docs/setup readOnly: true # Element Admin diff --git a/apps/production/element-web-docs-configmap.yaml b/apps/production/element-web-docs-configmap.yaml index 643288a..4a815c7 100644 --- a/apps/production/element-web-docs-configmap.yaml +++ b/apps/production/element-web-docs-configmap.yaml @@ -5,92 +5,12 @@ metadata: namespace: matrix data: # README - "setup/README-Element-Setup.md": | + "README-Element-Setup.md": | # Element Desktop Setup Scripts Automatische Konfiguration und Installation von Element Desktop mit Custom Themes für aXion1337.Chat - ## 📋 Systemanforderungen - - - **Windows 10/11** - - **macOS 10.13+** - - **Linux** (Ubuntu, Debian, Fedora, Arch, openSUSE, etc.) - - --- - - ## 🪟 Windows - - ### Installation - - 1. **Lade die Datei herunter**: `element-setup-windows.cmd` - 2. **Doppelklick** auf die Datei - 3. Das Skript wird automatisch: - - ✅ Die config.json erstellen - - ✅ Element Desktop installieren (falls nötig) - - ✅ Element starten - - ### Voraussetzungen - - Das Skript versucht automatisch, Element zu installieren über: - - Windows Store (Microsoft Store) - - WinGet (Windows Package Manager) - - Chocolatey - - Falls nichts davon vorhanden ist, installiere Element manuell: - https://element.io/download - - --- - - ## 🍎 macOS - - ### Installation - - 1. **Lade die Datei herunter**: `element-setup-macos.command` - 2. **Doppelklick** im Finder - 3. Das Skript wird automatisch: - - ✅ Die config.json erstellen - - ✅ Element Desktop installieren (über Homebrew falls nötig) - - ✅ Element starten - - ### Voraussetzungen - - Das Skript nutzt **Homebrew** (falls vorhanden): - ```bash - /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" - ``` - - Oder installiere Element manuell: - https://element.io/download - - --- - - ## 🐧 Linux - - ### Installation - - 1. **Lade die Datei herunter**: `element-setup-linux.sh` - 2. **Im Terminal:** - ```bash - chmod +x element-setup-linux.sh - ./element-setup-linux.sh - ``` - 3. Das Skript wird automatisch: - - ✅ Die config.json erstellen - - ✅ Element Desktop installieren (über apt/dnf/pacman/zypper) - - ✅ Element starten - - ### Unterstützte Distributionen - - - **Ubuntu/Debian**: `apt` - - **Fedora/RHEL**: `dnf` - - **Arch Linux**: `pacman` - - **openSUSE**: `zypper` - - --- - - ## 🎨 Themes nach Setup - - Nach dem Setup hat dein Element Desktop automatisch alle Custom Themes: + ## 🎨 Verfügbare Themes - aXion1337 Dark - Deep Purple - Discord Dark @@ -99,24 +19,22 @@ data: - Gruvbox Dark - Wal - --- + ## 🪟 Windows + Herunterladen: `element-setup-windows.cmd` → Doppelklick - ## 🆘 Troubleshooting + ## 🍎 macOS + Herunterladen: `element-setup-macos.command` → Doppelklick im Finder - ### Element startet nicht - - Stelle sicher, dass Element Desktop installiert ist - - Starten manuell: `element` (Terminal/CMD) + ## 🐧 Linux + ```bash + chmod +x element-setup-linux.sh + ./element-setup-linux.sh + ``` - ### config.json wird nicht geladen - - Beende Element vollständig (auch in der Taskbar) - - Starte Element neu - - ### Themes nicht sichtbar - - Überprüfe Internetverbindung - - `https://axion1337.chat/config.json` sollte erreichbar sein + Support: https://element.io/help # Windows Script - "setup/element-setup-windows.cmd": | + "element-setup-windows.cmd": | @echo off REM Element Desktop Setup Script for Windows setlocal enabledelayedexpansion @@ -174,7 +92,7 @@ data: pause # macOS Script - "setup/element-setup-macos.command": | + "element-setup-macos.command": | #!/bin/bash echo "========================================" echo "Element Desktop Konfiguration Setup" @@ -228,7 +146,7 @@ data: read -p "Druecke Enter zum Beenden..." # Linux Script - "setup/element-setup-linux.sh": | + "element-setup-linux.sh": | #!/bin/bash echo "========================================" echo "Element Desktop Konfiguration Setup"