add working sso + working Caddy + 2 scripts for hosts

This commit is contained in:
M1n-0
2025-05-13 21:21:07 +02:00
parent 248b608aba
commit cd4678c883
5 changed files with 64 additions and 30 deletions

17
add-localhosts.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
HOSTS_FILE="/etc/hosts"
DOMAINS=("flask.localhost" "keycloak.localhost" "chat.localhost" "wekan.localhost")
echo "[🔧] Mise à jour de : $HOSTS_FILE"
for domain in "${DOMAINS[@]}"; do
if grep -q "$domain" "$HOSTS_FILE"; then
echo "[=] Déjà présent : $domain"
else
echo "127.0.0.1 $domain" | sudo tee -a "$HOSTS_FILE" > /dev/null
echo "[+] Ajouté : $domain"
fi
done
echo "[✅] Terminé."