Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .envs/.local/.django.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# General
# ------------------------------------------------------------------------------
USE_DOCKER=yes
IPYTHONDIR=/app/.ipython

# Redis
# ------------------------------------------------------------------------------
REDIS_URL=redis://redis:6379/0

# Celery
# ------------------------------------------------------------------------------

# Flower - Credenciais de acesso ao painel do Celery Flower
# IMPORTANTE: Altere estas credenciais para valores seguros em produção
CELERY_FLOWER_USER=admin
CELERY_FLOWER_PASSWORD=change_this_password_123

# Timeout fetch_data
# ------------------------------------------------------------------------------
FETCH_DATA_TIMEOUT=2

# HuggingFace Token (opcional)
# ------------------------------------------------------------------------------
# Se você usa modelos do HuggingFace, adicione seu token aqui
HF_TOKEN=
9 changes: 9 additions & 0 deletions .envs/.local/.postgres.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# PostgreSQL
# ------------------------------------------------------------------------------
POSTGRES_HOST=postgres
POSTGRES_PORT=5432
POSTGRES_DB=scielo_core

# IMPORTANTE: Altere o usuário e senha para valores seguros
POSTGRES_USER=markapi_user
POSTGRES_PASSWORD=change_this_secure_password_123
57 changes: 57 additions & 0 deletions .envs/.production/.django.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# General
# ------------------------------------------------------------------------------
# DJANGO_READ_DOT_ENV_FILE=True
DJANGO_SETTINGS_MODULE=config.settings.production
DJANGO_SECRET_KEY=CHANGE_THIS_TO_A_LONG_RANDOM_STRING_FOR_SECURITY
DJANGO_ADMIN_URL=CHANGE_THIS_TO_HIDE_ADMIN_URL/
DJANGO_ALLOWED_HOSTS=.example.com,localhost

# 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 - Configuração para uso com S3 (opcional)
# ------------------------------------------------------------------------------
DJANGO_AWS_ACCESS_KEY_ID=
DJANGO_AWS_SECRET_ACCESS_KEY=
DJANGO_AWS_STORAGE_BUCKET_NAME=

# Django Admin - Configuração de usuário admin inicial
# ------------------------------------------------------------------------------
DJANGO_SUPERUSER_PASSWORD=change_this_admin_password

# django-allauth
# ------------------------------------------------------------------------------
DJANGO_ACCOUNT_ALLOW_REGISTRATION=True

# Gunicorn
# ------------------------------------------------------------------------------
WEB_CONCURRENCY=4

# Redis
# ------------------------------------------------------------------------------
REDIS_URL=redis://redis:6379/0

# Celery
# ------------------------------------------------------------------------------
CELERY_FLOWER_USER=admin
CELERY_FLOWER_PASSWORD=change_this_secure_password

# Sentry (opcional - monitoramento de erros)
# ------------------------------------------------------------------------------
SENTRY_DSN=

# Timeout fetch_data
# ------------------------------------------------------------------------------
FETCH_DATA_TIMEOUT=5

# HuggingFace Token (opcional)
# ------------------------------------------------------------------------------
HF_TOKEN=
9 changes: 9 additions & 0 deletions .envs/.production/.postgres.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# PostgreSQL
# ------------------------------------------------------------------------------
POSTGRES_HOST=postgres
POSTGRES_PORT=5432
POSTGRES_DB=markapi_production

# IMPORTANTE: Use senhas seguras e diferentes em produção
POSTGRES_USER=markapi_prod_user
POSTGRES_PASSWORD=CHANGE_THIS_TO_A_SECURE_PASSWORD
Loading