- API service
- Web service
The API service (
peermetrics/api) is the metric ingestion endpoint. It also creates the default admin user on first startup.Enable Django debug mode. Set to
"False" in production. Setting this to "True" exposes stack traces in HTTP responses.Django settings module. Use
"api.settings" for the API service. Do not change this value.Django secret key used for cryptographic signing. Change this to a long, random string in production.
Username for the admin account created automatically on first startup.
Password for the auto-created admin account. Change this in production. Must match the value set in the web service.
Email address for the auto-created admin account.
Secret used to generate JWT tokens for SDK authentication. Change this to a long, random string in production.
Secret used to encrypt session cookies. Change this to a long, random string in production.
Hostname (and optional port) of the web service, for example
localhost:8080 or app.example.com. Used to generate cross-service links.Subpath prefix when serving under a non-root path, for example
/peermetrics. The nginx configuration must have matching location blocks. Leave empty when serving from the root.Redis connection URL. Update this to point to your Redis instance when it is not running on localhost.
PostgreSQL hostname or IP address.
PostgreSQL port.
PostgreSQL username.
PostgreSQL password.
PostgreSQL database name.
Django database connection max age in seconds. Persistent connections reduce overhead by reusing database connections. The default of
14400 (4 hours) is suitable for most deployments.Delete raw
stats events after a conference ends. The API summarizes these events into an aggregate at the end of each conference, so the raw events are no longer needed. Set to "True" to save storage. See the FAQ for details.Enable Google Cloud Logging. Set to
"True" when deploying to Google App Engine or any environment where you want logs forwarded to Cloud Logging. Optional.Use Google Cloud Tasks instead of the default task queue. Set to
"True" when deploying to App Engine. Optional.The name of the Cloud Tasks queue to use, for example
queue-1. Required when USE_GOOGLE_TASK_QUEUE is "True".The App Engine region where the app is deployed, for example
us-east1. Required when USE_GOOGLE_TASK_QUEUE is "True".The base URL that Cloud Tasks will use when calling the API, for example
https://api.example.com/. Must end with a trailing slash. Required when USE_GOOGLE_TASK_QUEUE is "True".
