🎉 Added production setup documentation and scripts, improved firewall configuration, and updated systemd services for production environment. 🖥️🔒📡

This commit is contained in:
2025-06-10 12:33:55 +02:00
parent 7a4d7f6f65
commit 2e445d473d
9 changed files with 882 additions and 28 deletions

View File

@@ -0,0 +1,32 @@
#!/bin/bash
# MYP Kiosk URL Ermittlung - HTTPS-Only
# Ermittelt die beste HTTPS-URL für den Kiosk-Modus
# Prioritäten für URL-Ermittlung:
# 1. Intranet-Domain (falls erreichbar)
# 2. Lokaler Hostname (falls erreichbar)
# 3. Localhost (Fallback)
# Teste Intranet-Domain
INTRANET_URL="https://m040tbaraspi001.de040.corpintra.net"
if curl -k -s --connect-timeout 2 --max-time 3 "$INTRANET_URL" >/dev/null 2>&1; then
echo "$INTRANET_URL"
exit 0
fi
# Teste lokalen Hostname
HOSTNAME=$(hostname)
LOCAL_URL="https://$HOSTNAME"
if curl -k -s --connect-timeout 2 --max-time 3 "$LOCAL_URL" >/dev/null 2>&1; then
echo "$LOCAL_URL"
exit 0
fi
# Teste localhost mit Port 443
if curl -k -s --connect-timeout 2 --max-time 3 "https://localhost:443" >/dev/null 2>&1; then
echo "https://localhost:443"
exit 0
fi
# Fallback: localhost ohne Port
echo "https://localhost"