mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-16 14:47:10 +03:00
275c13292c
* Integrate Flower with Docker Compose setup locally * Remove alien worker celeryd option * Move Flower COPY section below the worker's * Remove set -o pipefail command from Flower start script * Flower client authentication * Override flower service image name * Move flower service to the end of local.yml * Install flower==0.9.2 in all environments * Introduce production flower service * Fix local flower start script * Document Flower integration * Prettify *.django envs Rationale: consistency. * Reference local environment Flower docs from the production's * 'two more services' -> 'three more services'
54 lines
1.7 KiB
Plaintext
54 lines
1.7 KiB
Plaintext
# General
|
|
# ------------------------------------------------------------------------------
|
|
# DJANGO_READ_DOT_ENV_FILE=True
|
|
DJANGO_SETTINGS_MODULE=config.settings.production
|
|
DJANGO_SECRET_KEY=!!!SET DJANGO_SECRET_KEY!!!
|
|
DJANGO_ADMIN_URL=!!!SET DJANGO_ADMIN_URL!!!
|
|
DJANGO_ALLOWED_HOSTS=.{{ cookiecutter.domain_name }}
|
|
|
|
# Security
|
|
# ------------------------------------------------------------------------------
|
|
# TIP: better off using DNS, however, redirect is OK too
|
|
DJANGO_SECURE_SSL_REDIRECT=False
|
|
|
|
# Email
|
|
# ------------------------------------------------------------------------------
|
|
MAILGUN_API_KEY=
|
|
DJANGO_SERVER_EMAIL=
|
|
MAILGUN_DOMAIN=
|
|
|
|
# AWS
|
|
# ------------------------------------------------------------------------------
|
|
DJANGO_AWS_ACCESS_KEY_ID=
|
|
DJANGO_AWS_SECRET_ACCESS_KEY=
|
|
DJANGO_AWS_STORAGE_BUCKET_NAME=
|
|
|
|
# django-allauth
|
|
# ------------------------------------------------------------------------------
|
|
DJANGO_ACCOUNT_ALLOW_REGISTRATION=True
|
|
{% if cookiecutter.use_compressor == 'y' %}
|
|
# django-compressor
|
|
# ------------------------------------------------------------------------------
|
|
COMPRESS_ENABLED=
|
|
{% endif %}
|
|
# Gunicorn
|
|
# ------------------------------------------------------------------------------
|
|
WEB_CONCURRENCY=4
|
|
{% if cookiecutter.use_sentry == 'y' %}
|
|
# Sentry
|
|
# ------------------------------------------------------------------------------
|
|
SENTRY_DSN=
|
|
{% endif %}
|
|
|
|
# Redis
|
|
# ------------------------------------------------------------------------------
|
|
REDIS_URL=redis://redis:6379/0
|
|
{% if cookiecutter.use_celery == 'y' %}
|
|
# Celery
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# Flower
|
|
CELERY_FLOWER_USER=!!!SET CELERY_FLOWER_USER!!!
|
|
CELERY_FLOWER_PASSWORD=!!!SET CELERY_FLOWER_PASSWORD!!!
|
|
{% endif %}
|