First Run
Setup mode
Section titled “Setup mode”On first launch, RustyFile enters setup mode — a time-limited window (default 5 minutes) where you create the initial admin account. No authentication is required during this window.
Creating the admin account
Section titled “Creating the admin account”Via the web UI
Section titled “Via the web UI”- Navigate to
http://localhost:8080 - You’ll see the setup form automatically
- Enter a username and password (minimum 10 characters, maximum 128)
- Click Create Account
- You’re logged in and redirected to the file browser
Via the API
Section titled “Via the API”curl -X POST http://localhost:8080/api/setup/admin \ -H "Content-Type: application/json" \ -d '{"username": "admin", "password": "your-secure-password", "password_confirm": "your-secure-password"}'Checking setup status
Section titled “Checking setup status”curl http://localhost:8080/api/setup/status# {"setup_required": true} — setup window is open# {"setup_required": false} — admin exists, normal auth activeSetup timeout
Section titled “Setup timeout”The setup window defaults to 5 minutes (configurable via --setup-timeout-minutes or RUSTYFILE_SETUP_TIMEOUT_MINUTES). After timeout or admin creation, the endpoint returns 410 Gone.
Password requirements
Section titled “Password requirements”| Rule | Default |
|---|---|
| Minimum length | 10 characters |
| Maximum length | 128 characters |
The max length prevents Argon2 denial-of-service attacks with extremely long passwords. Both limits are configurable.