From c71c32af32ac78490fbac4c9182c87a0a8147777 Mon Sep 17 00:00:00 2001 From: Samuel Veiga Rangel Date: Mon, 14 Oct 2024 15:34:40 -0300 Subject: [PATCH 01/19] Muda descricao de OPAC_CACHE_ENABLED --- .envs/.production-template/.redis | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.envs/.production-template/.redis b/.envs/.production-template/.redis index 7f57af54..63d4668b 100644 --- a/.envs/.production-template/.redis +++ b/.envs/.production-template/.redis @@ -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 From 1ec1cd05a4224fadb7b07352262f0deff200da59 Mon Sep 17 00:00:00 2001 From: Samuel Veiga Rangel Date: Mon, 14 Oct 2024 15:35:20 -0300 Subject: [PATCH 02/19] Muda nome de arquivo de monitoramento para um nome mais generico --- .envs/.production-template/.monitoring | 21 +++++++++++++++++++++ .envs/.production-template/.monitoring-apm | 13 ------------- docker-compose.yml | 2 +- 3 files changed, 22 insertions(+), 14 deletions(-) create mode 100644 .envs/.production-template/.monitoring delete mode 100644 .envs/.production-template/.monitoring-apm diff --git a/.envs/.production-template/.monitoring b/.envs/.production-template/.monitoring new file mode 100644 index 00000000..241cedb9 --- /dev/null +++ b/.envs/.production-template/.monitoring @@ -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= \ No newline at end of file diff --git a/.envs/.production-template/.monitoring-apm b/.envs/.production-template/.monitoring-apm deleted file mode 100644 index b439fd89..00000000 --- a/.envs/.production-template/.monitoring-apm +++ /dev/null @@ -1,13 +0,0 @@ -# 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= \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index d5b49f13..788d4649 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -43,7 +43,7 @@ services: env_file: - ./.envs/.production/.flask - ./.envs/.production/.redis - - ./.envs/.production/.monitoring-apm + - ./.envs/.production/.monitoring - ./.envs/.production/.metrics nginx: From b51f7f61da01d0eff0ae2976d1e609f1901a9af9 Mon Sep 17 00:00:00 2001 From: Samuel Veiga Rangel Date: Mon, 14 Oct 2024 15:35:37 -0300 Subject: [PATCH 03/19] Inclui variaveis faltantes --- .envs/.production-template/.flask | 15 ++++++++++++++- .envs/.production-template/.metrics | 7 +++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/.envs/.production-template/.flask b/.envs/.production-template/.flask index d09db19a..27f6a0f3 100644 --- a/.envs/.production-template/.flask +++ b/.envs/.production-template/.flask @@ -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) 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 ------------------- # ------------------------------------------------------------ @@ -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 --------------------- # ------------------------------------------------------------ diff --git a/.envs/.production-template/.metrics b/.envs/.production-template/.metrics index 97b59f44..1fd180d9 100644 --- a/.envs/.production-template/.metrics +++ b/.envs/.production-template/.metrics @@ -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= \ No newline at end of file From ff66c41f828bbc3d094c6911d5d45973646bbc1f Mon Sep 17 00:00:00 2001 From: Samuel Veiga Rangel Date: Sun, 10 Nov 2024 23:04:46 -0300 Subject: [PATCH 04/19] Adiciona novas variaveis de ambiente conforme default.py --- .envs/.production-template/.flask | 99 ++++++++++++++++++++++++----- .envs/.production-template/.metrics | 3 + .envs/.production-template/.mongo | 17 +++++ .envs/.production-template/.redis | 30 ++++++++- .envs/.production-template/.server | 24 +++++++ 5 files changed, 155 insertions(+), 18 deletions(-) create mode 100644 .envs/.production-template/.mongo diff --git a/.envs/.production-template/.flask b/.envs/.production-template/.flask index 27f6a0f3..7b43f483 100644 --- a/.envs/.production-template/.flask +++ b/.envs/.production-template/.flask @@ -1,6 +1,6 @@ # -------------- OPAC Application configuration -------------- # ------------------------------------------------------------ -# Possible values: True or False +# enables/disables the app's Debug mode. Possible values: True or False OPAC_DEBUG_MODE=False # Possible values: WARNING, INFO, ERROR, CRITICAL AND DEBUG @@ -21,24 +21,14 @@ OPAC_SECRET_KEY=NWhWFn_ScpW6YR9yJKDLxg # Name for MongoDB host OPAC_MONGODB_HOST=opac_mongo -# Activate/Desactivate the cache of redis (default: False) +# Activate/Desactivate the cache of redis (default: True) 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/ +# enables/disables the presentation of collection metrics data (default: False). Possible values: True or False +OPAC_USE_HOME_METRICS=False # -------------------- Journal path ------------------- # ------------------------------------------------------------ @@ -57,9 +47,10 @@ OPAC_SSM_SCHEME=http OPAC_SSM_DOMAIN=minio OPAC_SSM_PORT=9000 OPAC_SSM_MEDIA_PATH=/media/assets/ +OPAC_SSM_XML_URL_REWRITE=False -# ----------------- Table of contents sections --------------------- -# ------------------------------------------------------------ +# -------------- Table of contents sections ----------------- +# ----------------------------------------------------------- # This variable active/desactivate the sections on table of contents # Possible values: True or False @@ -68,3 +59,79 @@ OPAC_FILTER_SECTION_ENABLE=True # This variable define a mininal count of study ares on the head of journal page OPAC_FILTER_SECTION_ENABLE_FOR_MIN_STUDY_AREAS=5 + +# ------------------- Sending emails -------------------- +# ------------------------------------------------------- + +# Email account for sending messages from the website +OPAC_DEFAULT_EMAIL=None + +# mail server host (default: localhost) +OPAC_MAIL_SERVER=localhost + +# Serve port email +OPAC_MAIL_PORT=1025 + +# enable/disable sending email with TLS +OPAC_MAIL_USE_TLS=False + +# enable/disable sending email with SSL +OPAC_MAIL_USE_SSL=False + + +# ------------------ Google reCAPTCHA ------------------ +# ------------------------------------------------------ + +# Google reCAPTCHA secret key, used by the backend to validate tokens sent by the client. Ex: 6L***********G7k7************F +OPAC_GOOGLE_RECAPTCHA_SECRET_KEY= + +# Google reCAPTCHA public key used by the frontend to generate and send the reCAPTCHA token to the backend. (Ex: 6L***********9Tk************K) +OPAC_GOOGLE_VERIFY_RECAPTCHA_KEY= + +# Google reCAPTCHA JavaScript URL. (default: //www.google.com/recaptcha/api.js) +OPAC_GOOGLE_RECAPTCHA_URL=//www.google.com/recaptcha/api.js + +# URL de verificação do google (default: https://www.google.com/recaptcha/api/siteverify) +OPAC_GOOGLE_VERIFY_RECAPTCHA_URL=https://www.google.com/recaptcha/api/siteverify + + +# ------------------ Error form ------------------------ +# ------------------------------------------------------ + +# Email accounts to receive interface error messages. +OPAC_EMAIL_ACCOUNTS_RECEIVE_ERRORS= + +# --------------------- CRSF --------------------------- +# ------------------------------------------------------ + +# enables/disables CSRF feature (default: True) +OPAC_WTF_CSRF_ENABLED=True + +# key to security in WTF forms. (default: JGvNWiwBIq2Iig89LWbV) +OPAC_WTF_CSRF_SECRET_KEY=JGvNWiwBIq2Iig89LWbV + +# Forces the use of https in URLs for the OPAC website in Google tags. (default: True) +OPAC_FORCE_USE_HTTPS_GOOGLE_TAGS=True + +# --------------------- Links SciELO ------------------- +# ------------------------------------------------------ +# URL for SciELO.org (default: '//www.scielo.org') +URL_SCIELO_ORG=//www.scielo.org + +# URIs in SciELO.org for specific sessions +SCIELO_ORG_URIS= + +# URL for the SciELO in Perspective Blog. (default: '//blog.scielo.org') +URL_BLOG_SCIELO=//blog.scielo.org + +# URL for Search SciELO. (default: '//search.scielo.org/') +URL_SEARCH=//search.scielo.org/ + +# URL for the SciELO in Perspective Blog Press releases. (default: '//pressreleases.scielo.org') +URL_BLOG_PRESSRELEASE=//pressreleases.scielo.org + +# --------------------- Timezone ----------------------- +# ------------------------------------------------------ + +# (default 'America/Sao_Paulo') +LOCAL_ZONE=America/Sao_Paulo \ No newline at end of file diff --git a/.envs/.production-template/.metrics b/.envs/.production-template/.metrics index 1fd180d9..ac80b368 100644 --- a/.envs/.production-template/.metrics +++ b/.envs/.production-template/.metrics @@ -20,7 +20,10 @@ OPAC_PLUMX_METRICS_URL=https://plu.mx/scielo/a # Enable Altmetric metrics # Possible values: True or False OPAC_USE_ALTMETRIC=True +# Url PlumX OPAC_ALTMETRIC_METRICS_URL=https://www.altmetric.com/details.php +# Url to JS PlumX. (default: //cdn.plu.mx/widget-popup.js) +OPAC_PLUMX_METRICS_JS=//cdn.plu.mx/widget-popup.js # Enable SCITE OPAC_USE_SCITE=False diff --git a/.envs/.production-template/.mongo b/.envs/.production-template/.mongo new file mode 100644 index 00000000..f6460ff8 --- /dev/null +++ b/.envs/.production-template/.mongo @@ -0,0 +1,17 @@ +# ------------------- MongoDB Database -------------------- +# ------------------------------------------------------- + +# Name of Database(default: 'opac') +OPAC_MONGODB_NAME=opac + +# Host of Database (default: 'localhost') +OPAC_MONGODB_HOST=localhost + +# Port of Database(default: 27017) +OPAC_MONGODB_PORT=27017 + +# (Optional) user to access the bank (default: None) +OPAC_MONGODB_USER=None + +# (Optional) password to access the bank (default: None) +OPAC_MONGODB_PASS=None diff --git a/.envs/.production-template/.redis b/.envs/.production-template/.redis index 63d4668b..677778c3 100644 --- a/.envs/.production-template/.redis +++ b/.envs/.production-template/.redis @@ -13,9 +13,35 @@ OPAC_RQ_REDIS_PORT=6379 # Activate/Desactivate the cache of redis (default: False) OPAC_CACHE_ENABLED=True -# Cache timeout (in seconds). Ex: 3600 +# Type of cache backend: 'null', 'redis', outros (default: 'redis') +OPAC_CACHE_TYPE=redis + +#enables/disables display of warnings when CACHE_TYPE is 'null' (default: True) +OPAC_CACHE_NO_NULL_WARNING=True + +# Lifetime of objects in cache (in seconds). Ex: 3600 OPAC_CACHE_DEFAULT_TIMEOUT=3600 -# Redis host for cache. Ex: redis-cache +# Cache Key Prefix. (default: 'opac_cache') +OPAC_CACHE_KEY_PREFIX=opac_cache + +# Redis host for cache. (default: redis-cache) OPAC_CACHE_REDIS_HOST=redis-cache +# Redis Port for cache. (default: 6379) +OPAC_CACHE_REDIS_PORT=6379 + +# Redis server db name that will be used in the cache (integer >= 0). (default: 0) +OPAC_CACHE_REDIS_DB=0 + +# Password of the redis server that will be used in the cache. (default = '') +OPAC_CACHE_REDIS_PASSWORD= + +# sets a default integer value for static files served by Werkzeug (in seconds). (default: 604800) +OPAC_SEND_FILE_MAX_AGE_DEFAULT=604800 + +# sets the cache time for pages, response header Cache-Control: public, max-age={VALUE} (in seconds). (default: 604800) +OPAC_CACHE_CONTROL_MAX_AGE_HEADER=604800 + + +OPAC_FORCE_USE_HTTPS_GOOGLE_TAGS \ No newline at end of file diff --git a/.envs/.production-template/.server b/.envs/.production-template/.server index d7e7d665..e8a64a34 100644 --- a/.envs/.production-template/.server +++ b/.envs/.production-template/.server @@ -4,6 +4,30 @@ # This set the IP that the app will bind to run, default: 0.0.0.0 OPAC_SERVER_NAME=0.0.0.0 +# Domain for the session cookie (default: OPAC_SERVER_NAME) +OPAC_SESSION_COOKIE_DOMAIN=OPAC_SERVER_NAME + +# Set flag: httponly of cookie. (defaults to True) +OPAC_SESSION_COOKIE_HTTPONLY=True + +# session cookie name (default: 'opac_session') +OPAC_SESSION_COOKIE_NAME=opac_session + +# path to session cookie: (default: None -> ou seja a raiz /) +OPAC_SESSION_COOKIE_PATH=None + +# sets whether the session cookie should be marked as secure - (default: False) +OPAC_SESSION_COOKIE_SECURE=False + +# enable/disable cookie policy javascript, if yes set to: 'True' otherwise 'False' (default: 'True') +OPAC_COOKIE_POLICY_ENABLED=False + +# Cookie policy script URL (default: https://static.scielo.org/js/cookiePolicy.min.js) +OPAC_COOKIE_POLICY_URL=https://static.scielo.org/js/cookiePolicy.min.js + +# Refresh the cookie on each request (Default: 'False') +OPAC_SESSION_REFRESH_EACH_REQUEST=False + # Possible values: True or False OPAC_AUDIT_LOG_NOTIFICATION_ENABLED=False OPAC_AUDIT_LOG_NOTIFICATION_RECIPIENTS= \ No newline at end of file From 353ea54db32c355b98fe41efe6f4390e89381612 Mon Sep 17 00:00:00 2001 From: Samuel Veiga Rangel Date: Mon, 11 Nov 2024 10:15:08 -0300 Subject: [PATCH 05/19] Insere variaveis removidas --- .envs/.production-template/.flask | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.envs/.production-template/.flask b/.envs/.production-template/.flask index 7b43f483..46040d1e 100644 --- a/.envs/.production-template/.flask +++ b/.envs/.production-template/.flask @@ -30,6 +30,19 @@ OPAC_LANGUAGES="{'pt_BR': 'Português','en': 'English','es': 'Español'}" # enables/disables the presentation of collection metrics data (default: False). Possible values: True or False OPAC_USE_HOME_METRICS=False +# 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 ------------------- # ------------------------------------------------------------ @@ -129,9 +142,3 @@ URL_SEARCH=//search.scielo.org/ # URL for the SciELO in Perspective Blog Press releases. (default: '//pressreleases.scielo.org') URL_BLOG_PRESSRELEASE=//pressreleases.scielo.org - -# --------------------- Timezone ----------------------- -# ------------------------------------------------------ - -# (default 'America/Sao_Paulo') -LOCAL_ZONE=America/Sao_Paulo \ No newline at end of file From e4340c15047c1eb89d2517c664a255b30a3ee980 Mon Sep 17 00:00:00 2001 From: Samuel Veiga Rangel Date: Mon, 11 Nov 2024 10:15:50 -0300 Subject: [PATCH 06/19] Insere novos caminhos dos arquivos de variavel de ambiente --- docker-compose.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 781b0e2d..81c75b7f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -43,8 +43,9 @@ services: env_file: - ./.envs/.production-template/.flask - ./.envs/.production-template/.redis - - ./.envs/.production-template/.monitoring-apm + - ./.envs/.production-template/.monitoring - ./.envs/.production-template/.metrics + - ./.envs/.production-template/.mongo nginx: image: nginx:latest @@ -76,6 +77,7 @@ services: - ./.envs/.production-template/.flask - ./.envs/.production-template/.redis - ./.envs/.production-template/.server + - ./.envs/.production-template/.mongo opac-rq-scheduler: image: infrascielo/opac_5 @@ -96,6 +98,7 @@ services: - ./.envs/.production-template/.flask - ./.envs/.production-template/.redis - ./.envs/.production-template/.server + - ./.envs/.production-template/.mongo minio: image: 'minio/minio:RELEASE.2024-06-29T01-20-47Z' From 29bd2e46de62bdb93696f5de10bd15f2cde1b009 Mon Sep 17 00:00:00 2001 From: Samuel Veiga Rangel Date: Tue, 12 Nov 2024 23:37:16 -0300 Subject: [PATCH 07/19] Volta com os caminhos antigos das variaveis de ambiente --- docker-compose.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 81c75b7f..fcd3fd1b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -41,11 +41,11 @@ services: expose: - "8000" env_file: - - ./.envs/.production-template/.flask - - ./.envs/.production-template/.redis - - ./.envs/.production-template/.monitoring - - ./.envs/.production-template/.metrics - - ./.envs/.production-template/.mongo + - ./.envs/.production/.flask + - ./.envs/.production/.redis + - ./.envs/.production/.monitoring + - ./.envs/.production/.metrics + - ./.envs/.production/.mongo nginx: image: nginx:latest @@ -74,10 +74,10 @@ services: - opac_mongo:opac-mongo - redis-cache:redis-cache env_file: - - ./.envs/.production-template/.flask - - ./.envs/.production-template/.redis - - ./.envs/.production-template/.server - - ./.envs/.production-template/.mongo + - ./.envs/.production/.flask + - ./.envs/.production/.redis + - ./.envs/.production/.server + - ./.envs/.production/.mongo opac-rq-scheduler: image: infrascielo/opac_5 @@ -95,10 +95,10 @@ services: - opac_mongo:opac-mongo - redis-cache:redis-cache env_file: - - ./.envs/.production-template/.flask - - ./.envs/.production-template/.redis - - ./.envs/.production-template/.server - - ./.envs/.production-template/.mongo + - ./.envs/.production/.flask + - ./.envs/.production/.redis + - ./.envs/.production/.server + - ./.envs/.production/.mongo minio: image: 'minio/minio:RELEASE.2024-06-29T01-20-47Z' @@ -108,7 +108,7 @@ services: - '9000:9000' - '9001:9001' env_file: - - ./.envs/.production-template/.minio + - ./.envs/.production/.minio volumes: - '../minio/data:/data' command: server --console-address ":9001" /data \ No newline at end of file From a35636c3882f9f7bc68bf57be644f19fe53ab921 Mon Sep 17 00:00:00 2001 From: Samuel Veiga Rangel Date: Tue, 12 Nov 2024 23:56:50 -0300 Subject: [PATCH 08/19] Inclui variaveis de ambiente em THUMBNAIL_HEIGHT e THUMBNAIL_WIDTH --- opac/webapp/config/default.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opac/webapp/config/default.py b/opac/webapp/config/default.py index 7efc6994..7e2f7993 100644 --- a/opac/webapp/config/default.py +++ b/opac/webapp/config/default.py @@ -361,8 +361,8 @@ ) IMAGES_ALLOWED_EXTENSIONS = ("png", "jpg", "jpeg", "gif", "webp") IMAGES_ALLOWED_EXTENSIONS_RE = tuple("*." + ext for ext in IMAGES_ALLOWED_EXTENSIONS) -THUMBNAIL_HEIGHT = 100 -THUMBNAIL_WIDTH = 100 +THUMBNAIL_HEIGHT = os.environ.get("THUMBNAIL_HEIGHT", 100) +THUMBNAIL_WIDTH = os.environ.get("THUMBNAIL_WIDTH", 100) # scielo.org URL_SCIELO_ORG = os.environ.get("OPAC_URL_SCIELO_ORG", "//www.scielo.org") From 49f5a7c7b0a926cd3244233e909cca5cad5c4804 Mon Sep 17 00:00:00 2001 From: Samuel Veiga Rangel Date: Tue, 12 Nov 2024 23:57:10 -0300 Subject: [PATCH 09/19] Adiciona novas variaveis de ambiente --- .envs/.production-template/.db-sqlite | 10 +++++ .envs/.production-template/.flask | 47 ++++++++++++++++++++++++ .envs/.production-template/.social-media | 15 ++++++++ 3 files changed, 72 insertions(+) create mode 100644 .envs/.production-template/.db-sqlite create mode 100644 .envs/.production-template/.social-media diff --git a/.envs/.production-template/.db-sqlite b/.envs/.production-template/.db-sqlite new file mode 100644 index 00000000..7225f620 --- /dev/null +++ b/.envs/.production-template/.db-sqlite @@ -0,0 +1,10 @@ +# ------------------------ Banco SQL ------------------------ +# ------------------------------------------------------------ +# File name (sqlite) (default: 'opac.sqlite') +OPAC_DATABASE_FILE=opac.sqlite + +# Folder where the database is located (sqlite) (default: '/tmp') +OPAC_DATABASE_DIR=/tmp + +# [optional] SQL database URI (default: 'sqlite:////tmp/opac.sqlite') +OPAC_DATABASE_URI=sqlite:////tmp/opac.sqlite \ No newline at end of file diff --git a/.envs/.production-template/.flask b/.envs/.production-template/.flask index 46040d1e..589b35c4 100644 --- a/.envs/.production-template/.flask +++ b/.envs/.production-template/.flask @@ -142,3 +142,50 @@ URL_SEARCH=//search.scielo.org/ # URL for the SciELO in Perspective Blog Press releases. (default: '//pressreleases.scielo.org') URL_BLOG_PRESSRELEASE=//pressreleases.scielo.org + +# ----------------- Google Analytics ------------------- +# ------------------------------------------------------ +# google analytics code (go to https://goo.gl/HE77SO to redeem your code) +GA_TRACKING_CODE= + +# ----------------- Upload Images ------------------- +# --------------------------------------------------- +# Absolute path of the folder that will store the images uploaded by users through the admin. +# (default: /[repo dir]/opac/opac/webapp/media/) +OPAC_MEDIA_ROOT= + +# URL to serve images. (default: '/media') +OPAC_MEDIA_URL=/media + +# ------------------ Extensions --------------------- +# --------------------------------------------------- +# Extension of files allowed for upload +FILES_ALLOWED_EXTENSIONS= + +# Extension images allowed to upload +IMAGES_ALLOWED_EXTENSIONS= + +# Thumbnail height (default: 100) +THUMBNAIL_HEIGHT= + +# Thumbnail width (default: 100) +THUMBNAIL_WIDTH= + +# -------------- Common Style List --------------------- +# ------------------------------------------------------ +# Path to a .json file with the CSL. +OPAC_COMMON_STYLE_LIST= + + +# ------------------- Site License --------------------- +# ------------------------------------------------------ +# Enables/disables the display of the creative commons logo in the website footer +OPAC_SITE_LICENSE_ENABLE= + +# License Name (default: "Creative Common - by 4.0") +OPAC_SITE_LICENSE_NAME= +# License Url (default: https://creativecommons.org/licenses/by-nc/4.0/) +OPAC_SITE_LICENSE_URL= + +# License Image (default: https://licensebuttons.net/l/by/4.0/88x31.png) +OPAC_SITE_LICENSE_IMG_URL= \ No newline at end of file diff --git a/.envs/.production-template/.social-media b/.envs/.production-template/.social-media new file mode 100644 index 00000000..42bf77b4 --- /dev/null +++ b/.envs/.production-template/.social-media @@ -0,0 +1,15 @@ +# -------------------- Twitter ---------------------- +# --------------------------------------------------- +# Twitter comuser key (default: 'consum3r-k3y') +OPAC_TWITTER_CONSUMER_KEY= + +# Twitter comuser secret (default: 'consum3r-secr3t') +OPAC_TWITTER_CONSUMER_SECRET= + +# Twitter access token (default: 'acc3ss-tok3n-secr3t') +OPAC_TWITTER_ACCESS_TOKEN= +# Twitter access token (default: 'acc3ss-tok3n-secr3t') +OPAC_TWITTER_ACCESS_TOKEN_SECRET= + +# Twitter screen name (default: 'RedeSciELO') +OPAC_TWITTER_SCREEN_NAME= \ No newline at end of file From a19056fad5c43daf673b9d05610bdb83e16948a4 Mon Sep 17 00:00:00 2001 From: Samuel Veiga Rangel Date: Tue, 12 Nov 2024 23:57:26 -0300 Subject: [PATCH 10/19] Adiciona novos caminhos de arquivos de variavel de ambiente aos servicos da aplicacao --- docker-compose.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index fcd3fd1b..f36fcd67 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -46,6 +46,8 @@ services: - ./.envs/.production/.monitoring - ./.envs/.production/.metrics - ./.envs/.production/.mongo + - ./.envs/.production/.db-sqlite + - ./.envs/.production/.social-media nginx: image: nginx:latest @@ -78,6 +80,8 @@ services: - ./.envs/.production/.redis - ./.envs/.production/.server - ./.envs/.production/.mongo + - ./.envs/.production/.db-sqlite + - ./.envs/.production/.social-media opac-rq-scheduler: image: infrascielo/opac_5 @@ -99,6 +103,8 @@ services: - ./.envs/.production/.redis - ./.envs/.production/.server - ./.envs/.production/.mongo + - ./.envs/.production/.db-sqlite + - ./.envs/.production/.social-media minio: image: 'minio/minio:RELEASE.2024-06-29T01-20-47Z' From 10350c2699654b1455aed09ce9e1ee33256823cc Mon Sep 17 00:00:00 2001 From: Samuel Veiga Rangel Date: Mon, 25 Nov 2024 23:24:25 -0300 Subject: [PATCH 11/19] Move variaves de social-media para .flask --- .envs/.production-template/.flask | 19 ++++++++++++++++++- .envs/.production-template/.social-media | 15 --------------- docker-compose.yml | 7 +------ 3 files changed, 19 insertions(+), 22 deletions(-) delete mode 100644 .envs/.production-template/.social-media diff --git a/.envs/.production-template/.flask b/.envs/.production-template/.flask index 589b35c4..75287f34 100644 --- a/.envs/.production-template/.flask +++ b/.envs/.production-template/.flask @@ -188,4 +188,21 @@ OPAC_SITE_LICENSE_NAME= OPAC_SITE_LICENSE_URL= # License Image (default: https://licensebuttons.net/l/by/4.0/88x31.png) -OPAC_SITE_LICENSE_IMG_URL= \ No newline at end of file +OPAC_SITE_LICENSE_IMG_URL= + + +# -------------------- Twitter ---------------------- +# --------------------------------------------------- +# Twitter comuser key (default: 'consum3r-k3y') +OPAC_TWITTER_CONSUMER_KEY= + +# Twitter comuser secret (default: 'consum3r-secr3t') +OPAC_TWITTER_CONSUMER_SECRET= + +# Twitter access token (default: 'acc3ss-tok3n-secr3t') +OPAC_TWITTER_ACCESS_TOKEN= +# Twitter access token (default: 'acc3ss-tok3n-secr3t') +OPAC_TWITTER_ACCESS_TOKEN_SECRET= + +# Twitter screen name (default: 'RedeSciELO') +OPAC_TWITTER_SCREEN_NAME= \ No newline at end of file diff --git a/.envs/.production-template/.social-media b/.envs/.production-template/.social-media deleted file mode 100644 index 42bf77b4..00000000 --- a/.envs/.production-template/.social-media +++ /dev/null @@ -1,15 +0,0 @@ -# -------------------- Twitter ---------------------- -# --------------------------------------------------- -# Twitter comuser key (default: 'consum3r-k3y') -OPAC_TWITTER_CONSUMER_KEY= - -# Twitter comuser secret (default: 'consum3r-secr3t') -OPAC_TWITTER_CONSUMER_SECRET= - -# Twitter access token (default: 'acc3ss-tok3n-secr3t') -OPAC_TWITTER_ACCESS_TOKEN= -# Twitter access token (default: 'acc3ss-tok3n-secr3t') -OPAC_TWITTER_ACCESS_TOKEN_SECRET= - -# Twitter screen name (default: 'RedeSciELO') -OPAC_TWITTER_SCREEN_NAME= \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index f36fcd67..f8faf960 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -47,8 +47,6 @@ services: - ./.envs/.production/.metrics - ./.envs/.production/.mongo - ./.envs/.production/.db-sqlite - - ./.envs/.production/.social-media - nginx: image: nginx:latest container_name: opac_nginx @@ -81,8 +79,6 @@ services: - ./.envs/.production/.server - ./.envs/.production/.mongo - ./.envs/.production/.db-sqlite - - ./.envs/.production/.social-media - opac-rq-scheduler: image: infrascielo/opac_5 container_name: opac_rq_scheduler_prod @@ -103,8 +99,7 @@ services: - ./.envs/.production/.redis - ./.envs/.production/.server - ./.envs/.production/.mongo - - ./.envs/.production/.db-sqlite - - ./.envs/.production/.social-media + - ./.envs/.production/.db-sqlite minio: image: 'minio/minio:RELEASE.2024-06-29T01-20-47Z' From 45fe2a1d61c124915b60587137aabe02a2d4d87f Mon Sep 17 00:00:00 2001 From: Samuel Veiga Rangel Date: Mon, 25 Nov 2024 23:25:39 -0300 Subject: [PATCH 12/19] remove OPAC_FORCE_USE_HTTPS_GOOGLE_TAGS --- .envs/.production-template/.redis | 2 -- 1 file changed, 2 deletions(-) diff --git a/.envs/.production-template/.redis b/.envs/.production-template/.redis index 677778c3..f68a8ce9 100644 --- a/.envs/.production-template/.redis +++ b/.envs/.production-template/.redis @@ -43,5 +43,3 @@ OPAC_SEND_FILE_MAX_AGE_DEFAULT=604800 # sets the cache time for pages, response header Cache-Control: public, max-age={VALUE} (in seconds). (default: 604800) OPAC_CACHE_CONTROL_MAX_AGE_HEADER=604800 - -OPAC_FORCE_USE_HTTPS_GOOGLE_TAGS \ No newline at end of file From 1e366efa256e0e81e7c75effe00a6d8206e915c5 Mon Sep 17 00:00:00 2001 From: Samuel Veiga Rangel Date: Mon, 25 Nov 2024 23:25:51 -0300 Subject: [PATCH 13/19] Atribui valor em OPAC_SESSION_COOKIE_DOMAIN --- .envs/.production-template/.server | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.envs/.production-template/.server b/.envs/.production-template/.server index e8a64a34..a5089827 100644 --- a/.envs/.production-template/.server +++ b/.envs/.production-template/.server @@ -5,7 +5,7 @@ OPAC_SERVER_NAME=0.0.0.0 # Domain for the session cookie (default: OPAC_SERVER_NAME) -OPAC_SESSION_COOKIE_DOMAIN=OPAC_SERVER_NAME +OPAC_SESSION_COOKIE_DOMAIN=0.0.0.0 # Set flag: httponly of cookie. (defaults to True) OPAC_SESSION_COOKIE_HTTPONLY=True From 561dec830e21797cd5a60cfebb0ea3747d862a52 Mon Sep 17 00:00:00 2001 From: Samuel Veiga Rangel Date: Tue, 26 Nov 2024 00:14:30 -0300 Subject: [PATCH 14/19] Set value for opac_mongodb_host --- .envs/.production-template/.mongo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.envs/.production-template/.mongo b/.envs/.production-template/.mongo index f6460ff8..46416c34 100644 --- a/.envs/.production-template/.mongo +++ b/.envs/.production-template/.mongo @@ -5,7 +5,7 @@ OPAC_MONGODB_NAME=opac # Host of Database (default: 'localhost') -OPAC_MONGODB_HOST=localhost +OPAC_MONGODB_HOST=opac_mongo # Port of Database(default: 27017) OPAC_MONGODB_PORT=27017 From 5709d5cd9ecdad0e66575ceb0c2cfe099cf5da4c Mon Sep 17 00:00:00 2001 From: Samuel Veiga Rangel Date: Tue, 26 Nov 2024 00:24:42 -0300 Subject: [PATCH 15/19] Remove value for opac_server_name e OPAC_SESSION_COOKIE_DOMAIN --- .envs/.production-template/.server | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.envs/.production-template/.server b/.envs/.production-template/.server index a5089827..ce1cc457 100644 --- a/.envs/.production-template/.server +++ b/.envs/.production-template/.server @@ -2,10 +2,10 @@ # ------------------------------------------------------------ # This set the IP that the app will bind to run, default: 0.0.0.0 -OPAC_SERVER_NAME=0.0.0.0 +OPAC_SERVER_NAME= # Domain for the session cookie (default: OPAC_SERVER_NAME) -OPAC_SESSION_COOKIE_DOMAIN=0.0.0.0 +OPAC_SESSION_COOKIE_DOMAIN= # Set flag: httponly of cookie. (defaults to True) OPAC_SESSION_COOKIE_HTTPONLY=True From 1f1f66f639820c07ef19ba5b0c878c172b675ddd Mon Sep 17 00:00:00 2001 From: Samuel Veiga Rangel Date: Tue, 26 Nov 2024 01:15:38 -0300 Subject: [PATCH 16/19] Remove OPAC_SEND_FILE_MAX_AGE_DEFAULT e OPAC_CACHE_CONTROL_MAX_AGE_HEADER --- .envs/.production-template/.redis | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.envs/.production-template/.redis b/.envs/.production-template/.redis index f68a8ce9..0925724f 100644 --- a/.envs/.production-template/.redis +++ b/.envs/.production-template/.redis @@ -37,9 +37,4 @@ OPAC_CACHE_REDIS_DB=0 # Password of the redis server that will be used in the cache. (default = '') OPAC_CACHE_REDIS_PASSWORD= -# sets a default integer value for static files served by Werkzeug (in seconds). (default: 604800) -OPAC_SEND_FILE_MAX_AGE_DEFAULT=604800 - -# sets the cache time for pages, response header Cache-Control: public, max-age={VALUE} (in seconds). (default: 604800) -OPAC_CACHE_CONTROL_MAX_AGE_HEADER=604800 From 8269e1f8a7de666045db3af1e57cb01329eaccf6 Mon Sep 17 00:00:00 2001 From: Samuel Veiga Rangel Date: Tue, 26 Nov 2024 01:15:51 -0300 Subject: [PATCH 17/19] Remove None de user e pass --- .envs/.production-template/.mongo | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.envs/.production-template/.mongo b/.envs/.production-template/.mongo index 46416c34..4b835124 100644 --- a/.envs/.production-template/.mongo +++ b/.envs/.production-template/.mongo @@ -10,8 +10,8 @@ OPAC_MONGODB_HOST=opac_mongo # Port of Database(default: 27017) OPAC_MONGODB_PORT=27017 -# (Optional) user to access the bank (default: None) -OPAC_MONGODB_USER=None +# # (Optional) user to access the bank (default: None) +OPAC_MONGODB_USER= -# (Optional) password to access the bank (default: None) -OPAC_MONGODB_PASS=None +# # (Optional) password to access the bank (default: None) +OPAC_MONGODB_PASS= From 7df7246bda070b449b7f4dae3b588f615da945fa Mon Sep 17 00:00:00 2001 From: Samuel Veiga Rangel Date: Tue, 26 Nov 2024 01:17:03 -0300 Subject: [PATCH 18/19] Update --- .envs/.production-template/.flask | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/.envs/.production-template/.flask b/.envs/.production-template/.flask index 75287f34..bb6ce1f5 100644 --- a/.envs/.production-template/.flask +++ b/.envs/.production-template/.flask @@ -9,17 +9,12 @@ OPAC_LOG_LEVEL=WARNING # Possible values: True or False OPAC_MINIFY_PAGE=False -# Name for MongoDB. Ex: opac -OPAC_MONGODB_NAME=opac - # Path to directory app. Ex: /app/data OPAC_DATABASE_DIR=/app/data # Value for key. Ex: nmN73pR6 OPAC_SECRET_KEY=NWhWFn_ScpW6YR9yJKDLxg -# Name for MongoDB host -OPAC_MONGODB_HOST=opac_mongo # Activate/Desactivate the cache of redis (default: True) OPAC_CACHE_ENABLED=False @@ -159,17 +154,11 @@ OPAC_MEDIA_URL=/media # ------------------ Extensions --------------------- # --------------------------------------------------- -# Extension of files allowed for upload -FILES_ALLOWED_EXTENSIONS= - -# Extension images allowed to upload -IMAGES_ALLOWED_EXTENSIONS= - # Thumbnail height (default: 100) -THUMBNAIL_HEIGHT= +THUMBNAIL_HEIGHT=100 # Thumbnail width (default: 100) -THUMBNAIL_WIDTH= +THUMBNAIL_WIDTH=100 # -------------- Common Style List --------------------- # ------------------------------------------------------ @@ -180,15 +169,15 @@ OPAC_COMMON_STYLE_LIST= # ------------------- Site License --------------------- # ------------------------------------------------------ # Enables/disables the display of the creative commons logo in the website footer -OPAC_SITE_LICENSE_ENABLE= +OPAC_SITE_LICENSE_ENABLE=True # License Name (default: "Creative Common - by 4.0") -OPAC_SITE_LICENSE_NAME= +OPAC_SITE_LICENSE_NAME=Creative Common - by 4.0 # License Url (default: https://creativecommons.org/licenses/by-nc/4.0/) -OPAC_SITE_LICENSE_URL= +OPAC_SITE_LICENSE_URL=https://creativecommons.org/licenses/by-nc/4.0/ # License Image (default: https://licensebuttons.net/l/by/4.0/88x31.png) -OPAC_SITE_LICENSE_IMG_URL= +OPAC_SITE_LICENSE_IMG_URL=https://licensebuttons.net/l/by/4.0/88x31.png # -------------------- Twitter ---------------------- From dadc97cbc01cab3e5204e2c0afeb8ace54be8052 Mon Sep 17 00:00:00 2001 From: Samuel Veiga Rangel Date: Tue, 10 Dec 2024 12:41:57 -0300 Subject: [PATCH 19/19] Inclui novas variaveis --- .envs/.production-template/.flask | 38 ++++++++++++++++++++++++-- .envs/.production-template/.monitoring | 13 ++++++++- .envs/.production-template/.redis | 6 ++++ .envs/.production-template/.server | 1 + 4 files changed, 54 insertions(+), 4 deletions(-) diff --git a/.envs/.production-template/.flask b/.envs/.production-template/.flask index bb6ce1f5..b93205ae 100644 --- a/.envs/.production-template/.flask +++ b/.envs/.production-template/.flask @@ -22,6 +22,14 @@ OPAC_CACHE_ENABLED=False # Interface languages OPAC_LANGUAGES="{'pt_BR': 'Português','en': 'English','es': 'Español'}" +ALERT_MSG_PT= +ALERT_MSG_EN= +ALERT_MSG_ES= + +ACCESSIBILITY_FORM_PT=https://forms.gle/2Vpt2z26uGqHA7yy5 +ACCESSIBILITY_FORM_EN=https://forms.gle/qHwovmddXdZRDxjm7 +ACCESSIBILITY_FORM_ES=https://forms.gle/XZuJurSVMBp4E64j6 + # enables/disables the presentation of collection metrics data (default: False). Possible values: True or False OPAC_USE_HOME_METRICS=False @@ -38,6 +46,11 @@ LOCAL_ZONE= # ORCID URL. default: http://orcid.org/ OPAC_ORCID_URL=http://orcid.org/ +PREVIOUS_WEBSITE_URI= + +HTML_GENERATOR_VERSION="3.0" + +OPAC_PINGDOM_VISITOR_INSIGHTS_JS_SRC= # -------------------- Journal path ------------------- # ------------------------------------------------------------ @@ -102,6 +115,10 @@ OPAC_GOOGLE_RECAPTCHA_URL=//www.google.com/recaptcha/api.js # URL de verificação do google (default: https://www.google.com/recaptcha/api/siteverify) OPAC_GOOGLE_VERIFY_RECAPTCHA_URL=https://www.google.com/recaptcha/api/siteverify +# --------------------- Google ------------------------ +# ------------------------------------------------------ +OPAC_GOOGLE_SCHOLAR=https://scholar.google.com/scholar?q= +OPAC_GOOGLE=https://www.google.com/search?q= # ------------------ Error form ------------------------ # ------------------------------------------------------ @@ -120,7 +137,7 @@ OPAC_WTF_CSRF_SECRET_KEY=JGvNWiwBIq2Iig89LWbV # Forces the use of https in URLs for the OPAC website in Google tags. (default: True) OPAC_FORCE_USE_HTTPS_GOOGLE_TAGS=True - +OPAC_READCUBE_ENABLED=False # --------------------- Links SciELO ------------------- # ------------------------------------------------------ # URL for SciELO.org (default: '//www.scielo.org') @@ -172,7 +189,8 @@ OPAC_COMMON_STYLE_LIST= OPAC_SITE_LICENSE_ENABLE=True # License Name (default: "Creative Common - by 4.0") -OPAC_SITE_LICENSE_NAME=Creative Common - by 4.0 +OPAC_SITE_LICENSE_NAME="Creative Common - by 4.0" + # License Url (default: https://creativecommons.org/licenses/by-nc/4.0/) OPAC_SITE_LICENSE_URL=https://creativecommons.org/licenses/by-nc/4.0/ @@ -194,4 +212,18 @@ OPAC_TWITTER_ACCESS_TOKEN= OPAC_TWITTER_ACCESS_TOKEN_SECRET= # Twitter screen name (default: 'RedeSciELO') -OPAC_TWITTER_SCREEN_NAME= \ No newline at end of file +OPAC_TWITTER_SCREEN_NAME= + +# -------------------- SCIMAGO ---------------------- +# --------------------------------------------------- +SCIMAGO_URL=https://www.scimagojr.com/journalsearch.php?tip=sid&clean=0&q= + +SCIMAGO_ENABLED=True + +# SCImago Institutions Ranking(IR) +SCIMAGO_URL_IR=https://www.scimagoir.com/ + +# -------------------- MathJax ---------------------- +# --------------------------------------------------- +# string with the default mathjax URL; ex: "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-AMS-MML_HTMLorMML" +OPAC_MATHJAX_CDN_URL=https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-AMS-MML_HTMLorMML \ No newline at end of file diff --git a/.envs/.production-template/.monitoring b/.envs/.production-template/.monitoring index 241cedb9..0608e5f8 100644 --- a/.envs/.production-template/.monitoring +++ b/.envs/.production-template/.monitoring @@ -12,7 +12,18 @@ OPAC_APM_SERVICE_NAME=Website # Type of enviroment. Ex: production or local OPAC_APM_ENVIRONMENT=production OPAC_APM_SECRET_TOKEN= - +OPAC_APM_SERVER_TIMEOUT= +OPAC_APM_HOSTNAME= +OPAC_APM_COLLECT_LOCAL_VARIABLES= +OPAC_APM_LOCAL_VAR_MAX_LENGTH= +OPAC_APM_CAPTURE_BODY= +OPAC_APM_CAPTURE_HEADERS= +OPAC_APM_TRANSACTION_MAX_SPANS= +OPAC_APM_STACK_TRACE_LIMIT= +OPAC_APM_DEBUG= +OPAC_APM_DISABLE_SEND= +OPAC_APM_INSTRUMENT= +OPAC_APM_APM_VERIFY_SERVER_CERT= # ------------------------ SENTRY ---------------------------- # ------------------------------------------------------------ diff --git a/.envs/.production-template/.redis b/.envs/.production-template/.redis index 0925724f..be2f00f9 100644 --- a/.envs/.production-template/.redis +++ b/.envs/.production-template/.redis @@ -7,6 +7,12 @@ OPAC_RQ_REDIS_HOST=redis-cache # Redis port for cache. Ex: 6379 OPAC_RQ_REDIS_PORT=6379 +# # default cron value for sending emails (default: "0 7 * * *") +# OPAC_MAILING_CRON_STRING="0 7 * * *" + +# #timeout do screduler cron (dafault: 1000). +# OPAC_DEFAULT_SCHEDULER_TIMEOUT=1000 + # --------------------- Cache configuration ------------------ # ------------------------------------------------------------ diff --git a/.envs/.production-template/.server b/.envs/.production-template/.server index ce1cc457..9b447ed3 100644 --- a/.envs/.production-template/.server +++ b/.envs/.production-template/.server @@ -1,5 +1,6 @@ # ----------------- Server Configuration --------------------- # ------------------------------------------------------------ +OPAC_OPAC_SCHEME=https # This set the IP that the app will bind to run, default: 0.0.0.0 OPAC_SERVER_NAME=