mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-16 00:14:23 +00:00
* feat(SimpleJWT): PRWLR-4717 add djangorestframework-simplejwt dep * feat(SimpleJWT): PRWLR-4717 add basic configuration and env variables * feat(Users): PRWLR-4717 add model and security constraints * feat(Users): PRWLR-4717 add serializers * feat(Users): PRWLR-4717 add views * test(Conftest): PRWLR-4717 add user and authenticated client fixtures * fix(Unit tests): PRWLR-4717 add automated authentication to all unit tests * fix(Authentication): PRWLR-4717 add authentication class and update tests * test(Users): PRWLR-4717 add unit tests * test(Users): PRWLR-4717 add integration tests * chore(Schema): PRWLR-4717 update API schema * fix(User): PRWLR-4717 fix password validation * feat(Validators): PRWLR-4717 add MaxLength password validator * fix(User): PRWLR-4717 update User model to delete admin fields * chore(Serializers): PRWLR-4717 add docstrings and update serializers * chore(Fixtures): PRWLR-4717 add dev user * chore(Users): PRWLR-4717 raise DRF NotFound instead of returning response
36 lines
1.1 KiB
Bash
36 lines
1.1 KiB
Bash
# Django settings
|
|
DJANGO_ALLOWED_HOSTS=localhost,127.0.0.1
|
|
DJANGO_BIND_ADDRESS=0.0.0.0
|
|
DJANGO_PORT=8000
|
|
DJANGO_DEBUG=False
|
|
# select one of [production|devel]
|
|
DJANGO_SETTINGS_MODULE=config.django.[production|devel]
|
|
# select one of [ndjson|human_readable]
|
|
DJANGO_LOGGING_FORMATTER=[ndjson|human_readable]
|
|
# select one of [DEBUG|INFO|WARNING|ERROR|CRITICAL]
|
|
# applies to both Django and Celery Workers
|
|
DJANGO_LOGGING_LEVEL=INFO
|
|
DJANGO_WORKERS=4 # Defaults to the maximum available based on CPU cores if not set.
|
|
# Token lifetime is in minutes
|
|
DJANGO_ACCESS_TOKEN_LIFETIME=30
|
|
DJANGO_REFRESH_TOKEN_LIFETIME=1440
|
|
DJANGO_TOKEN_SIGNING_KEY=S3cret
|
|
DJANGO_CACHE_MAX_AGE=3600
|
|
DJANGO_STALE_WHILE_REVALIDATE=60
|
|
|
|
# PostgreSQL settings
|
|
# If running django and celery on host, use 'localhost', else use 'postgres-db'
|
|
POSTGRES_HOST=[localhost|postgres-db]
|
|
POSTGRES_PORT=5432
|
|
POSTGRES_ADMIN_USER=prowler
|
|
POSTGRES_ADMIN_PASSWORD=S3cret
|
|
POSTGRES_USER=prowler_user
|
|
POSTGRES_PASSWORD=S3cret
|
|
POSTGRES_DB=prowler_db
|
|
|
|
# valkey settings.
|
|
# If running django and celery on host, use localhost, else use 'valkey'
|
|
VALKEY_HOST=[localhost|valkey]
|
|
VALKEY_PORT=6379
|
|
VALKEY_DB=0
|