···77# 1. Create a new sudo user.
88# 2. Move the root SSH key to the new user.
99# 3. Harden the SSH server configuration.
1010-# 4. Install bat, eza, and Docker.
1010+# 4. Install bat, eza, Docker, Caddy, and chrony for time synchronization.
11111212# --- Configuration ---
1313readonly USERNAME="finxol"
···161161chmod o+r /etc/apt/sources.list.d/caddy-stable.list
162162sudo apt update
163163sudo apt install caddy
164164+165165+# --- Time Synchronization ---
166166+log "Installing and configuring chrony for time synchronization"
167167+apt-get install -y chrony
168168+# Start and enable chrony service
169169+systemctl enable --now chronyd || true
170170+echo "chrony installed and configured for automatic time synchronization."
164171165172# --- Finalization ---
166173log "Server setup complete!"