2018-03-08 15:56:15 +03:00
|
|
|
# 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
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
DJANGO_SERVER_EMAIL=
|
2020-02-07 00:58:15 +03:00
|
|
|
{% if cookiecutter.mail_service == 'Mailgun' %}
|
|
|
|
MAILGUN_API_KEY=
|
2018-03-08 15:56:15 +03:00
|
|
|
MAILGUN_DOMAIN=
|
2020-02-07 00:58:15 +03:00
|
|
|
{% elif cookiecutter.mail_service == 'Mailjet' %}
|
|
|
|
MAILJET_API_KEY=
|
|
|
|
MAILJET_SECRET_KEY=
|
|
|
|
{% elif cookiecutter.mail_service == 'Mandrill' %}
|
|
|
|
MANDRILL_API_KEY=
|
|
|
|
{% elif cookiecutter.mail_service == 'Postmark' %}
|
|
|
|
POSTMARK_SERVER_TOKEN=
|
|
|
|
{% elif cookiecutter.mail_service == 'Sendgrid' %}
|
|
|
|
SENDGRID_API_KEY=
|
|
|
|
SENDGRID_GENERATE_MESSAGE_ID=True
|
|
|
|
SENDGRID_MERGE_FIELD_FORMAT=None
|
|
|
|
{% elif cookiecutter.mail_service == 'SendinBlue' %}
|
|
|
|
SENDINBLUE_API_KEY=
|
|
|
|
{% elif cookiecutter.mail_service == 'SparkPost' %}
|
|
|
|
SPARKPOST_API_KEY=
|
|
|
|
{% endif %}
|
2019-04-02 09:13:31 +03:00
|
|
|
{% if cookiecutter.cloud_provider == 'AWS' %}
|
2018-03-08 15:56:15 +03:00
|
|
|
# AWS
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
DJANGO_AWS_ACCESS_KEY_ID=
|
|
|
|
DJANGO_AWS_SECRET_ACCESS_KEY=
|
|
|
|
DJANGO_AWS_STORAGE_BUCKET_NAME=
|
2019-05-19 02:24:29 +03:00
|
|
|
{% elif cookiecutter.cloud_provider == 'GCP' %}
|
|
|
|
# GCP
|
2019-04-02 09:13:31 +03:00
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
GOOGLE_APPLICATION_CREDENTIALS=
|
2019-05-19 02:24:29 +03:00
|
|
|
DJANGO_GCP_STORAGE_BUCKET_NAME=
|
2019-04-02 09:13:31 +03:00
|
|
|
{% endif %}
|
2018-03-08 15:56:15 +03:00
|
|
|
# django-allauth
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
DJANGO_ACCOUNT_ALLOW_REGISTRATION=True
|
2020-03-16 01:16:40 +03:00
|
|
|
|
2018-03-08 22:40:22 +03:00
|
|
|
# Gunicorn
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
WEB_CONCURRENCY=4
|
2018-04-03 12:12:26 +03:00
|
|
|
{% if cookiecutter.use_sentry == 'y' %}
|
2018-03-08 15:56:15 +03:00
|
|
|
# Sentry
|
|
|
|
# ------------------------------------------------------------------------------
|
2018-05-27 22:36:13 +03:00
|
|
|
SENTRY_DSN=
|
2018-03-08 15:56:15 +03:00
|
|
|
{% endif %}
|
2018-04-04 13:42:01 +03:00
|
|
|
|
|
|
|
# Redis
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
REDIS_URL=redis://redis:6379/0
|
2018-06-27 19:33:21 +03:00
|
|
|
{% if cookiecutter.use_celery == 'y' %}
|
|
|
|
# Celery
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
# Flower
|
|
|
|
CELERY_FLOWER_USER=!!!SET CELERY_FLOWER_USER!!!
|
|
|
|
CELERY_FLOWER_PASSWORD=!!!SET CELERY_FLOWER_PASSWORD!!!
|
|
|
|
{% endif %}
|