Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inclui novas variáveis de ambiente. #196

Merged
merged 20 commits into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
c71c32a
Muda descricao de OPAC_CACHE_ENABLED
samuelveigarangel Oct 14, 2024
1ec1cd0
Muda nome de arquivo de monitoramento para um nome mais generico
samuelveigarangel Oct 14, 2024
b51f7f6
Inclui variaveis faltantes
samuelveigarangel Oct 14, 2024
fd17533
Merge branch 'master' into issue-184
samuelveigarangel Nov 7, 2024
ff66c41
Adiciona novas variaveis de ambiente conforme default.py
samuelveigarangel Nov 11, 2024
353ea54
Insere variaveis removidas
samuelveigarangel Nov 11, 2024
e4340c1
Insere novos caminhos dos arquivos de variavel de ambiente
samuelveigarangel Nov 11, 2024
29bd2e4
Volta com os caminhos antigos das variaveis de ambiente
samuelveigarangel Nov 13, 2024
a35636c
Inclui variaveis de ambiente em THUMBNAIL_HEIGHT e THUMBNAIL_WIDTH
samuelveigarangel Nov 13, 2024
49f5a7c
Adiciona novas variaveis de ambiente
samuelveigarangel Nov 13, 2024
a19056f
Adiciona novos caminhos de arquivos de variavel de ambiente aos servi…
samuelveigarangel Nov 13, 2024
10350c2
Move variaves de social-media para .flask
samuelveigarangel Nov 26, 2024
45fe2a1
remove OPAC_FORCE_USE_HTTPS_GOOGLE_TAGS
samuelveigarangel Nov 26, 2024
1e366ef
Atribui valor em OPAC_SESSION_COOKIE_DOMAIN
samuelveigarangel Nov 26, 2024
561dec8
Set value for opac_mongodb_host
samuelveigarangel Nov 26, 2024
5709d5c
Remove value for opac_server_name e OPAC_SESSION_COOKIE_DOMAIN
samuelveigarangel Nov 26, 2024
1f1f66f
Remove OPAC_SEND_FILE_MAX_AGE_DEFAULT e OPAC_CACHE_CONTROL_MAX_AGE_HE…
samuelveigarangel Nov 26, 2024
8269e1f
Remove None de user e pass
samuelveigarangel Nov 26, 2024
7df7246
Update
samuelveigarangel Nov 26, 2024
dadc97c
Inclui novas variaveis
samuelveigarangel Dec 10, 2024
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
15 changes: 14 additions & 1 deletion .envs/.production-template/.flask
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,24 @@ OPAC_SECRET_KEY=NWhWFn_ScpW6YR9yJKDLxg
# Name for MongoDB host
OPAC_MONGODB_HOST=opac_mongo

# Activate/Desactivate the cache of redis (default: True)
# Activate/Desactivate the cache of redis (default: False)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Show.

OPAC_CACHE_ENABLED=False

# Interface languages
OPAC_LANGUAGES="{'pt_BR': 'Português','en': 'English','es': 'Español'}"

# Acronym Collection. Consult: https://articlemeta.scielo.org/api/v1/collection/identifiers/
OPAC_COLLECTION=

# Application version. Ex: v0.1.0
OPAC_WEBAPP_VERSION=

# LOCALZONE
# Default 'America/Sao_Paulo'. Consult: https://gist.github.com/heyalexej/8bf688fd67d7199be4a1682b3eec7568
LOCAL_ZONE=

# ORCID URL. default: http://orcid.org/
OPAC_ORCID_URL=http://orcid.org/

# -------------------- Journal path -------------------
# ------------------------------------------------------------
Expand All @@ -44,6 +56,7 @@ OPAC_JOURNAL_IMAGES_SOURCE_PATH=/app/data/img
OPAC_SSM_SCHEME=http
OPAC_SSM_DOMAIN=minio
OPAC_SSM_PORT=9000
OPAC_SSM_MEDIA_PATH=/media/assets/

# ----------------- Table of contents sections ---------------------
# ------------------------------------------------------------
Expand Down
7 changes: 7 additions & 0 deletions .envs/.production-template/.metrics
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,16 @@ OPAC_DIMENSIONS_URL=https://badge.dimensions.ai/details/doi
# Enable PlumX metrics
# Possible values: True or False
OPAC_USE_PLUMX=True
# URL to PlumX (default: https://plu.mx/a)
OPAC_PLUMX_METRICS_URL=https://plu.mx/scielo/a

# Enable Altmetric metrics
# Possible values: True or False
OPAC_USE_ALTMETRIC=True
OPAC_ALTMETRIC_METRICS_URL=https://www.altmetric.com/details.php

# Enable SCITE
OPAC_USE_SCITE=False
# URL to SCITE_
OPAC_SCITE_URL=
OPAC_SCITE_METRICS_URL=
21 changes: 21 additions & 0 deletions .envs/.production-template/.monitoring
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# ---- APM (Application Performance Monitoring) settings -----
# ------------------------------------------------------------
# True or False
OPAC_APM_ENABLED=False

# Url for APM
OPAC_APM_SERVER_URL=

# Name for Service. Ex. Website
OPAC_APM_SERVICE_NAME=Website

# Type of enviroment. Ex: production or local
OPAC_APM_ENVIRONMENT=production
OPAC_APM_SECRET_TOKEN=


# ------------------------ SENTRY ----------------------------
# ------------------------------------------------------------
# True or False
OPAC_USE_SENTRY=False
OPAC_SENTRY_DSN=
13 changes: 0 additions & 13 deletions .envs/.production-template/.monitoring-apm

This file was deleted.

2 changes: 1 addition & 1 deletion .envs/.production-template/.redis
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ OPAC_RQ_REDIS_PORT=6379
# --------------------- Cache configuration ------------------
# ------------------------------------------------------------

# True or False
# Activate/Desactivate the cache of redis (default: False)
OPAC_CACHE_ENABLED=True

# Cache timeout (in seconds). Ex: 3600
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ services:
- ./.envs/.production-template/.flask
- ./.envs/.production-template/.redis
- ./.envs/.production-template/.monitoring-apm
- ./.envs/.production-template/.metrics
- ./.envs/.production-template/.metrics

nginx:
image: nginx:latest
Expand Down