mirror of
https://github.com/bellingcat/auto-archiver-api.git
synced 2026-06-07 19:18:34 +03:00
* Update pyproject.toml * add pre-commit * Create .pre-commit-config.yaml * Comment out ruff * Update .pre-commit-config.yaml * General formatting * Create format-and-fail.yml * Update ci.yml * Add pre-commit to dev dependencies * Update pyproject.toml
39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
# main settings
|
|
USER_GROUPS_FILENAME=app/user-groups.yaml
|
|
# database
|
|
DATABASE_PATH="sqlite:///./database/auto-archiver.db"
|
|
DATABASE_QUERY_LIMIT=100
|
|
|
|
# security settings
|
|
API_BEARER_TOKEN=TODO-MODIFY-THIS-API-TOKEN
|
|
ALLOWED_ORIGINS='["http://localhost:8000","http://localhost:8004","http://localhost:8081","https://auto-archiver.bellingcat.com"]'
|
|
CHROME_APP_IDS='[PROJECT_ID.apps.googleusercontent.com"]'
|
|
BLOCKED_EMAILS='[]'
|
|
# redis configuration
|
|
REDIS_PASSWORD=TODO-MODIFY-THIS-REDIS-PASSWORD
|
|
REDIS_HOSTNAME="localhost"
|
|
|
|
# cronjobs management, enable as needed
|
|
CRON_ARCHIVE_SHEETS=true
|
|
CRON_DELETE_STALE_SHEETS=true
|
|
DELETE_STALE_SHEETS_DAYS=7
|
|
CRON_DELETE_SCHEDULED_ARCHIVES=false
|
|
DELETE_SCHEDULED_ARCHIVES_CHECK_EVERY_N_DAYS=14
|
|
|
|
# observability for prometheus
|
|
REPEAT_COUNT_METRICS_SECONDS=30
|
|
|
|
# mail service settings, if you want to email users
|
|
MAIL_FROM="noreply@auto-archiver.com"
|
|
MAIL_FROM_NAME="My Auto Archiver deployment"
|
|
MAIL_USERNAME="USERNAME"
|
|
MAIL_PASSWORD="PASSWORD"
|
|
MAIL_SERVER="mail.server.com"
|
|
MAIL_PORT=587
|
|
MAIL_STARTTLS=False
|
|
MAIL_SSL_TLS=True
|
|
|
|
|
|
# celery workers config
|
|
CONCURRENCY=2
|