Core Application
Database
Zygo uses PostgreSQL as its primary database.
The connection string follows the standard format:
The host, username, password, and database name are automatically parsed from the connection string. You only need to set
SQLALCHEMY_DATABASE_URI.Redis
Redis is used for background job queues and rate limiting.Authentication
Sessions
Default Admin Account
Self-Registration
OAuth / Social Login
- Google
- Microsoft
To set up Google authentication:
- Create a project in the Google Cloud Console
- Configure the OAuth consent screen
- Create OAuth 2.0 credentials
- Add your Zygo callback URL as an authorized redirect URI
Encryption
Generate a new key:
- SMTP
- Mailjet
Internal API
Logging
Debugging
Environments
Zygo ships with three configuration profiles. The active profile is set at startup.production (default)
production (default)
- Debug mode: off
- Use for all live deployments
- Set via:
FLASK_CONFIG=defaultor omit (default)
development
development
- Debug mode: on
- Hot reloading and verbose error pages
- Set via:
FLASK_CONFIG=development
testing
testing
- Debug mode: on
- CSRF protection: disabled
- Use for automated test suites
- Set via:
FLASK_CONFIG=testing
DEBUG, TESTING, and WTF_CSRF_ENABLED.