Configuration Management
Learn how to configure and manage your Supabase instances with Supascale.
Supascale provides comprehensive configuration management for your Supabase infrastructure. The platform allows you to manage settings for both the Supascale platform itself and your Supabase instances.
Platform Configuration
The main configuration file at src/configuration.ts
controls the Supascale platform settings:
import type { Provider } from '@supabase/gotrue-js/src/lib/types'; config: { // Authentication Settings auth: { requireEmailConfirmation: true, providers: { emailPassword: true, oAuth: ['google'] as Provider[], }, }, // Infrastructure Settings infrastructure: { maxInstancesPerServer: 5, defaultRegion: 'us-east-1', backupRetentionDays: 30, monitoringInterval: 60, // seconds }, // Security Settings security: { enforceMFA: true, sessionTimeout: 3600, // seconds ipAllowlist: ['192.168.1.0/24'], } }
Instance Configuration
Basic Configuration
instance: { version: 'latest', resources: { cpu: 2, memory: '4GB', storage: '50GB', }, networking: { port: 5432, ssl: true, } }
Advanced Configuration
instance: { advanced: { maxConnections: 100, sharedBuffers: '128MB', maintenanceWindow: '02:00-04:00', autoVacuum: true, } }
Server Configuration
Agent Settings
agent: { updateInterval: 300, // seconds logLevel: 'info', metricsCollection: true, backupEnabled: true, }
Monitoring Configuration
monitoring: { metrics: { cpu: true, memory: true, disk: true, network: true, }, alerts: { enabled: true, thresholds: { cpu: 80, memory: 85, disk: 90, } } }
Configuration Management
Version Control
- Configuration templates
- Version history
- Rollback capabilities
- Change tracking
Environment Management
- Development
- Staging
- Production
- Custom environments
Best Practices
Security
- Use strong passwords
- Enable MFA
- Configure IP allowlists
- Regular security audits
Performance
- Monitor resource usage
- Optimize instance settings
- Configure appropriate backups
- Set up monitoring alerts
Maintenance
- Regular updates
- Backup verification
- Performance tuning
- Security patching