[Unit]
Description=Configure nginx for Dangerous Pi (HTTP/HTTPS)
Documentation=https://github.com/yourusername/dangerous-pi
Before=nginx.service
After=dangerous-pi-ssl-gen.service local-fs.target

[Service]
Type=oneshot
ExecStart=/opt/dangerous-pi/scripts/configure-nginx.sh
RemainAfterExit=yes

# Run as root to manage nginx config symlinks
User=root
Group=root

# Timeout for configuration
TimeoutStartSec=30

[Install]
WantedBy=multi-user.target
