[Unit]
Description=LAN Manager
After=network.target

[Service]
Type=simple
ExecStart=/opt/lan-manager/lan-manager
WorkingDirectory=/opt/lan-manager
Restart=on-failure
Environment="HOST=0.0.0.0"
Environment="PORT=8080"
Environment="DB_PATH=/opt/lan-manager/data/lan-manager.db"
Environment="DATA_DIR=/opt/lan-manager/data"
Environment="ADMIN_USER=admin"
Environment="ADMIN_PASS=changeme"
Environment="SESSION_SECRET=your-random-secret-here"
Environment="PING_INTERVAL=60"
Environment="SSH_TIMEOUT=10"
Environment="LOG_RETENTION_DAYS=90"
Environment="UI_REFRESH_INTERVAL=10000"

[Install]
WantedBy=multi-user.target
