fix: trusted-proxies, nginx configs, bootstrap ssh/ufw, add zkreml.cz template

This commit is contained in:
2026-03-07 11:45:28 +01:00
parent 9fd66279f4
commit ed0133e943
5 changed files with 62 additions and 25 deletions

View File

@@ -61,7 +61,7 @@ SSHD_CONF="/etc/ssh/sshd_config"
sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin prohibit-password/' "$SSHD_CONF"
# Zakaz PasswordAuthentication (pouze klíče)
sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication no/' "$SSHD_CONF"
systemctl reload sshd
systemctl reload ssh.service
# === UFW firewall ===
echo "==> Konfigurace UFW firewallu..."