neue Fassaung

This commit is contained in:
2025-11-05 09:21:47 +01:00
parent 496ce6691c
commit 1e30dac000
7 changed files with 1689 additions and 1742 deletions

51
gittea.sh Executable file
View File

@@ -0,0 +1,51 @@
#!/bin/bash
# ============================================================
# 🧰 Gitea SSH Fix Script (Version 3)
# Führt vollständige Reparatur von SSH-Keys, Hooks & Rechten durch
# ============================================================
set -euo pipefail
grn='\e[32m'; red='\e[31m'; yel='\e[33m'; nc='\e[0m'
echo -e "${grn}🔧 Starte Gitea SSH-Reparatur...${nc}"
# 1⃣ Gitea-Binary prüfen
GITEA_BIN=$(command -v gitea || echo "/usr/local/bin/gitea")
echo -e "${grn}➡ Verwende Gitea-Binary:${nc} $GITEA_BIN"
# 2⃣ Gitea stoppen
echo -e "${yel}⏹ Stoppe Gitea-Service...${nc}"
systemctl stop gitea || echo -e "${red}⚠️ Konnte Gitea nicht stoppen (evtl. nicht aktiv).${nc}"
# 3⃣ Hooks & Keys regenerieren (richtig: als Benutzer 'git')
echo -e "${grn}♻️ Regeneriere Hooks und Keys...${nc}"
sudo -u git "$GITEA_BIN" --config /etc/gitea/app.ini --work-path /var/lib/gitea admin regenerate hooks
sudo -u git "$GITEA_BIN" --config /etc/gitea/app.ini --work-path /var/lib/gitea admin regenerate keys
# 4⃣ Berechtigungen für .ssh korrigieren
echo -e "${grn}🧱 Setze Berechtigungen für .ssh...${nc}"
chown -R git:git /home/git/.ssh
chmod 700 /home/git/.ssh
chmod 600 /home/git/.ssh/authorized_keys
# 5⃣ authorized_keys prüfen
if ! grep -q "command=" /home/git/.ssh/authorized_keys; then
echo -e "${yel}⚠️ Kein 'command='-Eintrag gefunden ergänze Gitea-Zeile...${nc}"
FIRST_KEY=$(head -n 1 /home/git/.ssh/authorized_keys | awk '{print $NF}')
echo "command=\"$GITEA_BIN --config=/etc/gitea/app.ini serv key-1\",no-port-forwarding,no-agent-forwarding,no-pty ssh-ed25519 $FIRST_KEY" > /home/git/.ssh/authorized_keys
chown git:git /home/git/.ssh/authorized_keys
chmod 600 /home/git/.ssh/authorized_keys
else
echo -e "${grn}✅ authorized_keys sieht gut aus.${nc}"
fi
# 6⃣ Gitea starten
echo -e "${grn}🚀 Starte Gitea neu...${nc}"
systemctl start gitea
# 7⃣ SSH-Test lokal
echo -e "${yel}🔍 Kurzer SSH-Test (lokal)...${nc}"
sudo -u git ssh -T git@localhost || true
echo -e "\n${grn}✅ Gitea SSH-Fix abgeschlossen.${nc}"
echo -e "Teste jetzt bitte extern mit:\n ssh -T git@illg.me\noder\n git push"

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -27,6 +27,8 @@ $nav-background2: url("../inc/bg/christmas-banner-6739203.jpg") 0 86% no-repeat
background-size: 100%
border-bottom: 4px ridge $siteColor
background-size: 100%
position: relative
z-index: 10000
// Logo and branding
.brand
@@ -162,6 +164,8 @@ nav
@media screen and (min-width: $breakpoint)
.nav-list
display: block !important
position: relative
z-index: 10001
#nav-toggle
position: absolute

View File

@@ -38,23 +38,30 @@
width: clamp(100px, 18vw, 150px)
#bibi
@include personen-txt(darkgreen)
@include personen-txt(#007a4e)
#melly
@include personen-txt($melly)
@include personen-txt(#6D1F74)
#packa
@include personen-txt(darkgreen)
@include personen-txt(#125035)
#tina
@include personen-txt(#8b7500)
#alex
@include personen-txt(#36648b)
@include personen-txt(#343992)
#otherPerson
@include personen-txt(black)
#txtGedanken
@include personen-txt(#11486D)
#txtLesung
@include personen-txt(#676668)
//text-decoration: underline
#schneiiW
display: inline-block
margin: 0rem 0 -4.5px 0

View File

@@ -27,13 +27,6 @@ body
background-position: top center
position: relative
.navigation
position: relative
z-index: 10000
.nav-list
position: relative
z-index: 10001
article
position: relative

File diff suppressed because it is too large Load Diff