Skip to content

Commit 9c70499

Browse files
Add simplified installation and update scripts for end users
Co-authored-by: robertatakenaka <505143+robertatakenaka@users.noreply.github.com>
1 parent 66d8f69 commit 9c70499

File tree

9 files changed

+688
-0
lines changed

9 files changed

+688
-0
lines changed

.envs/.local/.django.example

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# General
2+
# ------------------------------------------------------------------------------
3+
USE_DOCKER=yes
4+
IPYTHONDIR=/app/.ipython
5+
6+
# Redis
7+
# ------------------------------------------------------------------------------
8+
REDIS_URL=redis://redis:6379/0
9+
10+
# Celery
11+
# ------------------------------------------------------------------------------
12+
13+
# Flower - Credenciais de acesso ao painel do Celery Flower
14+
# IMPORTANTE: Altere estas credenciais para valores seguros em produção
15+
CELERY_FLOWER_USER=admin
16+
CELERY_FLOWER_PASSWORD=change_this_password_123
17+
18+
# Timeout fetch_data
19+
# ------------------------------------------------------------------------------
20+
FETCH_DATA_TIMEOUT=2
21+
22+
# HuggingFace Token (opcional)
23+
# ------------------------------------------------------------------------------
24+
# Se você usa modelos do HuggingFace, adicione seu token aqui
25+
HF_TOKEN=

.envs/.local/.postgres.example

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# PostgreSQL
2+
# ------------------------------------------------------------------------------
3+
POSTGRES_HOST=postgres
4+
POSTGRES_PORT=5432
5+
POSTGRES_DB=scielo_core
6+
7+
# IMPORTANTE: Altere o usuário e senha para valores seguros
8+
POSTGRES_USER=markapi_user
9+
POSTGRES_PASSWORD=change_this_secure_password_123

.envs/.production/.django.example

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# General
2+
# ------------------------------------------------------------------------------
3+
# DJANGO_READ_DOT_ENV_FILE=True
4+
DJANGO_SETTINGS_MODULE=config.settings.production
5+
DJANGO_SECRET_KEY=CHANGE_THIS_TO_A_LONG_RANDOM_STRING_FOR_SECURITY
6+
DJANGO_ADMIN_URL=CHANGE_THIS_TO_HIDE_ADMIN_URL/
7+
DJANGO_ALLOWED_HOSTS=.example.com,localhost
8+
9+
# Security
10+
# ------------------------------------------------------------------------------
11+
# TIP: better off using DNS, however, redirect is OK too
12+
DJANGO_SECURE_SSL_REDIRECT=False
13+
14+
# Email
15+
# ------------------------------------------------------------------------------
16+
MAILGUN_API_KEY=
17+
DJANGO_SERVER_EMAIL=
18+
MAILGUN_DOMAIN=
19+
20+
# AWS - Configuração para uso com S3 (opcional)
21+
# ------------------------------------------------------------------------------
22+
DJANGO_AWS_ACCESS_KEY_ID=
23+
DJANGO_AWS_SECRET_ACCESS_KEY=
24+
DJANGO_AWS_STORAGE_BUCKET_NAME=
25+
26+
# Django Admin - Configuração de usuário admin inicial
27+
# ------------------------------------------------------------------------------
28+
DJANGO_SUPERUSER_PASSWORD=change_this_admin_password
29+
30+
# django-allauth
31+
# ------------------------------------------------------------------------------
32+
DJANGO_ACCOUNT_ALLOW_REGISTRATION=True
33+
34+
# Gunicorn
35+
# ------------------------------------------------------------------------------
36+
WEB_CONCURRENCY=4
37+
38+
# Redis
39+
# ------------------------------------------------------------------------------
40+
REDIS_URL=redis://redis:6379/0
41+
42+
# Celery
43+
# ------------------------------------------------------------------------------
44+
CELERY_FLOWER_USER=admin
45+
CELERY_FLOWER_PASSWORD=change_this_secure_password
46+
47+
# Sentry (opcional - monitoramento de erros)
48+
# ------------------------------------------------------------------------------
49+
SENTRY_DSN=
50+
51+
# Timeout fetch_data
52+
# ------------------------------------------------------------------------------
53+
FETCH_DATA_TIMEOUT=5
54+
55+
# HuggingFace Token (opcional)
56+
# ------------------------------------------------------------------------------
57+
HF_TOKEN=
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# PostgreSQL
2+
# ------------------------------------------------------------------------------
3+
POSTGRES_HOST=postgres
4+
POSTGRES_PORT=5432
5+
POSTGRES_DB=markapi_production
6+
7+
# IMPORTANTE: Use senhas seguras e diferentes em produção
8+
POSTGRES_USER=markapi_prod_user
9+
POSTGRES_PASSWORD=CHANGE_THIS_TO_A_SECURE_PASSWORD

0 commit comments

Comments
 (0)