Examples¶
Ready-to-use Navigator configurations for common scenarios. Each example is complete and tested.
Quick Reference¶
Example | Use Case | Key Features |
---|---|---|
Single Rails App | Basic Rails application | Simple setup, static files |
Multi-Tenant | Multiple customers/databases | Isolated apps, path routing |
With Redis | Caching and sessions | Managed Redis process |
With Sidekiq | Background jobs | Worker process management |
Action Cable | WebSockets | Real-time features |
Choose Your Scenario¶
I want to serve a single Rails application¶
→ Start with Single Rails App
I have multiple customers with separate databases¶
→ See Multi-Tenant Setup
I need background job processing¶
→ Check With Sidekiq
I need WebSocket support¶
→ Read Action Cable
I'm deploying to Fly.io¶
→ Follow Fly.io Deployment
I need a systemd service¶
→ Use Systemd Service
Configuration Templates¶
All examples follow this structure:
# Server configuration
server:
listen: 3000
public_dir: ./public
# Static file serving (optional)
static:
directories: []
extensions: []
# Authentication (optional)
auth:
enabled: false
# Applications
applications:
tenants: []
# Managed processes (optional)
managed_processes: []
# Routing rules (optional)
routes:
rewrites: []
fly_replay: []
Tips for Using Examples¶
- Start Simple: Begin with the basic example closest to your needs
- Modify Gradually: Make small changes and test each one
- Check Logs: Use
LOG_LEVEL=debug
for troubleshooting - Test Locally: Verify configuration before deploying
- Use Absolute Paths: In production, use absolute paths for directories
Common Patterns¶
Environment-Specific Configuration¶
Use environment variables for different environments:
Path-Based Routing¶
Route different paths to different apps:
Resource Limits¶
Control resource usage:
Need Help?¶
- Can't find your scenario? Check the Configuration Guide
- Having issues? Check the documentation or open an issue
- Want to contribute an example? Open a PR