mirror of
https://github.com/Cian-H/am-d-model.eu.git
synced 2025-12-23 05:51:57 +00:00
Undid ./repo changes and updated settings
This commit is contained in:
@@ -6,7 +6,7 @@ logfile = /logs/invenio-cli.log
|
|||||||
project_name = AM-D-Model Data Repository
|
project_name = AM-D-Model Data Repository
|
||||||
project_shortname = am-d-model-data-repository
|
project_shortname = am-d-model-data-repository
|
||||||
package_name = am_d_model_data_repository
|
package_name = am_d_model_data_repository
|
||||||
project_site = am-d-model.eu
|
project_site = invenio.am-d-model.eu
|
||||||
author_name = Cian Hughes
|
author_name = Cian Hughes
|
||||||
author_email = repo@am-d-model.eu
|
author_email = repo@am-d-model.eu
|
||||||
year = 2025
|
year = 2025
|
||||||
@@ -17,7 +17,7 @@ development_tools = no
|
|||||||
site_code = yes
|
site_code = yes
|
||||||
use_reduced_vocabs = no
|
use_reduced_vocabs = no
|
||||||
_template = https://github.com/inveniosoftware/cookiecutter-invenio-rdm.git
|
_template = https://github.com/inveniosoftware/cookiecutter-invenio-rdm.git
|
||||||
_output_dir = /home/ec2-user
|
_output_dir = /home/ec2-user/am-d-model.eu
|
||||||
|
|
||||||
[files]
|
[files]
|
||||||
app_data = {'pages': {'.gitkeep': '22818f8c9f68fb11b7ca893ad1c082f844ae9f691f082d2174e32738d9ae6114'}, 'vocabularies': {'cc_licences.csv': '19a8bfd2488c7adb90d1dbe1c70f57cf2e0a737cb11814cc814f917072843de7', 'languages.yaml': 'd3bdb59940e8e6cd2401785ad55733f5fc6a1fb0bb0a2005a8fe4e5148e5f286', 'names.yaml': '6dc80984186ec960bcf53fbb6c482554d0aaf386d345bf82f504fdbd896e5848', 'subjects_oecd_fos.yaml': 'eef38714c506d956193c3be17e6004049525d252bf22424f4804dfc1ad46db44', 'affiliations_ror.yaml': '2e913fbecacd3694cba1b9a10739164911c2d45db3b32f1cb923027c48e0ac3e'}, 'README.md': 'd58978488626bdeddc791a15a39e341a4ed06f202b84d0c0d4aa9ef49481c6d9', 'vocabularies.yaml': '86f780281913b4ed5683775632d36511b16dff4b4f90fa7f14127cf69ab4e0cc'}
|
app_data = {'pages': {'.gitkeep': '22818f8c9f68fb11b7ca893ad1c082f844ae9f691f082d2174e32738d9ae6114'}, 'vocabularies': {'cc_licences.csv': '19a8bfd2488c7adb90d1dbe1c70f57cf2e0a737cb11814cc814f917072843de7', 'languages.yaml': 'd3bdb59940e8e6cd2401785ad55733f5fc6a1fb0bb0a2005a8fe4e5148e5f286', 'names.yaml': '6dc80984186ec960bcf53fbb6c482554d0aaf386d345bf82f504fdbd896e5848', 'subjects_oecd_fos.yaml': 'eef38714c506d956193c3be17e6004049525d252bf22424f4804dfc1ad46db44', 'affiliations_ror.yaml': '2e913fbecacd3694cba1b9a10739164911c2d45db3b32f1cb923027c48e0ac3e'}, 'README.md': 'd58978488626bdeddc791a15a39e341a4ed06f202b84d0c0d4aa9ef49481c6d9', 'vocabularies.yaml': '86f780281913b4ed5683775632d36511b16dff4b4f90fa7f14127cf69ab4e0cc'}
|
||||||
|
|||||||
@@ -24,32 +24,22 @@ services:
|
|||||||
extends:
|
extends:
|
||||||
file: docker-services.yml
|
file: docker-services.yml
|
||||||
service: cache
|
service: cache
|
||||||
networks:
|
|
||||||
- am-d-model-repo-network
|
|
||||||
db:
|
db:
|
||||||
extends:
|
extends:
|
||||||
file: docker-services.yml
|
file: docker-services.yml
|
||||||
service: db
|
service: db
|
||||||
networks:
|
|
||||||
- am-d-model-repo-network
|
|
||||||
mq:
|
mq:
|
||||||
extends:
|
extends:
|
||||||
file: docker-services.yml
|
file: docker-services.yml
|
||||||
service: mq
|
service: mq
|
||||||
networks:
|
|
||||||
- am-d-model-repo-network
|
|
||||||
search:
|
search:
|
||||||
extends:
|
extends:
|
||||||
file: docker-services.yml
|
file: docker-services.yml
|
||||||
service: search
|
service: search
|
||||||
networks:
|
|
||||||
- am-d-model-repo-network
|
|
||||||
s3:
|
s3:
|
||||||
extends:
|
extends:
|
||||||
file: docker-services.yml
|
file: docker-services.yml
|
||||||
service: s3
|
service: s3
|
||||||
networks:
|
|
||||||
- am-d-model-repo-network
|
|
||||||
# Frontend
|
# Frontend
|
||||||
frontend:
|
frontend:
|
||||||
extends:
|
extends:
|
||||||
@@ -60,8 +50,9 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- web-ui
|
- web-ui
|
||||||
- web-api
|
- web-api
|
||||||
networks:
|
ports:
|
||||||
- am-d-model-repo-network
|
- "80:80"
|
||||||
|
- "443:443"
|
||||||
# UI Application
|
# UI Application
|
||||||
web-ui:
|
web-ui:
|
||||||
extends:
|
extends:
|
||||||
@@ -73,8 +64,6 @@ services:
|
|||||||
- "5000"
|
- "5000"
|
||||||
volumes:
|
volumes:
|
||||||
- static_data:/opt/invenio/var/instance/static
|
- static_data:/opt/invenio/var/instance/static
|
||||||
networks:
|
|
||||||
- am-d-model-repo-network
|
|
||||||
|
|
||||||
# API Rest Application
|
# API Rest Application
|
||||||
web-api:
|
web-api:
|
||||||
@@ -85,8 +74,6 @@ services:
|
|||||||
image: am-d-model-data-repository:latest
|
image: am-d-model-data-repository:latest
|
||||||
ports:
|
ports:
|
||||||
- "5000"
|
- "5000"
|
||||||
networks:
|
|
||||||
- am-d-model-repo-network
|
|
||||||
|
|
||||||
# Worker
|
# Worker
|
||||||
worker:
|
worker:
|
||||||
@@ -104,11 +91,6 @@ services:
|
|||||||
condition: service_started
|
condition: service_started
|
||||||
mq:
|
mq:
|
||||||
condition: service_started
|
condition: service_started
|
||||||
networks:
|
|
||||||
- am-d-model-repo-network
|
|
||||||
networks:
|
|
||||||
am-d-model-repo-network:
|
|
||||||
name: am-d-model-repo-network
|
|
||||||
volumes:
|
volumes:
|
||||||
static_data:
|
static_data:
|
||||||
redis_data:
|
data:
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
# - OpenSearch (exposed ports: 9200, 9600)
|
# - OpenSearch (exposed ports: 9200, 9600)
|
||||||
# - Kibana (view ES indexes) (exposed ports: 5601)
|
# - Kibana (view ES indexes) (exposed ports: 5601)
|
||||||
#
|
#
|
||||||
|
version: "2.2"
|
||||||
services:
|
services:
|
||||||
cache:
|
cache:
|
||||||
extends:
|
extends:
|
||||||
@@ -37,4 +38,3 @@ services:
|
|||||||
service: s3
|
service: s3
|
||||||
volumes:
|
volumes:
|
||||||
data:
|
data:
|
||||||
redis_data:
|
|
||||||
|
|||||||
@@ -18,12 +18,9 @@ services:
|
|||||||
- "INVENIO_CELERY_RESULT_BACKEND=redis://cache:6379/2"
|
- "INVENIO_CELERY_RESULT_BACKEND=redis://cache:6379/2"
|
||||||
- "INVENIO_COMMUNITIES_IDENTITIES_CACHE_REDIS_URL=redis://cache:6379/4"
|
- "INVENIO_COMMUNITIES_IDENTITIES_CACHE_REDIS_URL=redis://cache:6379/4"
|
||||||
- "INVENIO_SEARCH_HOSTS=['search:9200']"
|
- "INVENIO_SEARCH_HOSTS=['search:9200']"
|
||||||
# - "INVENIO_SECRET_KEY=${aws secretsmanager get-secret-value --secret-id Invenio | jq '.SecretString | fromjson | .INVENIO_SECRET_KEY'}"
|
|
||||||
- "INVENIO_SQLALCHEMY_DATABASE_URI=postgresql+psycopg2://am-d-model-data-repository:am-d-model-data-repository@db/am-d-model-data-repository"
|
- "INVENIO_SQLALCHEMY_DATABASE_URI=postgresql+psycopg2://am-d-model-data-repository:am-d-model-data-repository@db/am-d-model-data-repository"
|
||||||
- "INVENIO_WSGI_PROXIES=2"
|
- "INVENIO_WSGI_PROXIES=2"
|
||||||
- "INVENIO_RATELIMIT_STORAGE_URL=redis://cache:6379/3"
|
- "INVENIO_RATELIMIT_STORAGE_URL=redis://cache:6379/3"
|
||||||
networks:
|
|
||||||
- am-d-model-repo-network
|
|
||||||
frontend:
|
frontend:
|
||||||
build: ./docker/nginx/
|
build: ./docker/nginx/
|
||||||
image: am-d-model-data-repository-frontend
|
image: am-d-model-data-repository-frontend
|
||||||
@@ -31,19 +28,13 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "80"
|
- "80"
|
||||||
- "443"
|
- "443"
|
||||||
networks:
|
|
||||||
- am-d-model-repo-network
|
|
||||||
cache:
|
cache:
|
||||||
image: redis:7
|
image: redis:7
|
||||||
restart: "unless-stopped"
|
restart: "unless-stopped"
|
||||||
# read_only: true
|
read_only: true
|
||||||
command: redis-server --appendonly yes
|
command: redis-server --appendonly yes
|
||||||
volumes:
|
|
||||||
- redis_data:/data
|
|
||||||
ports:
|
ports:
|
||||||
- "6379:6379"
|
- "6379:6379"
|
||||||
networks:
|
|
||||||
- am-d-model-repo-network
|
|
||||||
db:
|
db:
|
||||||
image: postgres:14.13
|
image: postgres:14.13
|
||||||
restart: "unless-stopped"
|
restart: "unless-stopped"
|
||||||
@@ -51,17 +42,14 @@ services:
|
|||||||
- .env
|
- .env
|
||||||
environment:
|
environment:
|
||||||
- "POSTGRES_USER=am-d-model-data-repository"
|
- "POSTGRES_USER=am-d-model-data-repository"
|
||||||
# - "POSTGRES_PASSWORD=am-d-model-data-repository"
|
|
||||||
- "POSTGRES_DB=am-d-model-data-repository"
|
- "POSTGRES_DB=am-d-model-data-repository"
|
||||||
ports:
|
ports:
|
||||||
- "5432"
|
- "5432"
|
||||||
networks:
|
|
||||||
- am-d-model-repo-network
|
|
||||||
pgadmin:
|
pgadmin:
|
||||||
image: dpage/pgadmin4:6
|
image: dpage/pgadmin4:6
|
||||||
restart: "unless-stopped"
|
restart: "unless-stopped"
|
||||||
ports:
|
ports:
|
||||||
- "5050"
|
- "5050:80"
|
||||||
environment:
|
environment:
|
||||||
PGADMIN_DEFAULT_EMAIL: "repo@am-d-model.eu"
|
PGADMIN_DEFAULT_EMAIL: "repo@am-d-model.eu"
|
||||||
PGADMIN_DEFAULT_PASSWORD: "am-d-model-data-repository"
|
PGADMIN_DEFAULT_PASSWORD: "am-d-model-data-repository"
|
||||||
@@ -73,10 +61,8 @@ services:
|
|||||||
image: rabbitmq:3-management
|
image: rabbitmq:3-management
|
||||||
restart: "unless-stopped"
|
restart: "unless-stopped"
|
||||||
ports:
|
ports:
|
||||||
- "15672"
|
- "15672:15672"
|
||||||
- "5672"
|
- "5672:5672"
|
||||||
networks:
|
|
||||||
- am-d-model-repo-network
|
|
||||||
search:
|
search:
|
||||||
image: opensearchproject/opensearch:2.17.1
|
image: opensearchproject/opensearch:2.17.1
|
||||||
restart: "unless-stopped"
|
restart: "unless-stopped"
|
||||||
@@ -96,10 +82,8 @@ services:
|
|||||||
hard: 65536
|
hard: 65536
|
||||||
mem_limit: 2g
|
mem_limit: 2g
|
||||||
ports:
|
ports:
|
||||||
- "9200"
|
- "9200:9200"
|
||||||
- "9600"
|
- "9600:9600"
|
||||||
networks:
|
|
||||||
- am-d-model-repo-network
|
|
||||||
opensearch-dashboards:
|
opensearch-dashboards:
|
||||||
image: opensearchproject/opensearch-dashboards:2.17.1
|
image: opensearchproject/opensearch-dashboards:2.17.1
|
||||||
ports:
|
ports:
|
||||||
@@ -116,8 +100,8 @@ services:
|
|||||||
image: minio/minio:RELEASE.2022-10-24T18-35-07Z
|
image: minio/minio:RELEASE.2022-10-24T18-35-07Z
|
||||||
restart: "unless-stopped"
|
restart: "unless-stopped"
|
||||||
ports:
|
ports:
|
||||||
- "9000"
|
- "9000:9000"
|
||||||
- "9001"
|
- "9001:9001"
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
environment:
|
environment:
|
||||||
@@ -131,12 +115,3 @@ services:
|
|||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 20s
|
timeout: 20s
|
||||||
retries: 3
|
retries: 3
|
||||||
networks:
|
|
||||||
- am-d-model-repo-network
|
|
||||||
|
|
||||||
networks:
|
|
||||||
am-d-model-repo-network:
|
|
||||||
name: am-d-model-repo-network
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
redis_data:
|
|
||||||
|
|||||||
@@ -10,7 +10,4 @@ mount = /api=invenio_app.wsgi_rest:application
|
|||||||
manage-script-name = true
|
manage-script-name = true
|
||||||
wsgi-disable-file-wrapper = true
|
wsgi-disable-file-wrapper = true
|
||||||
single-interpreter = true
|
single-interpreter = true
|
||||||
buffer-size = 65535
|
buffer-size = 8192
|
||||||
log-4xx = true
|
|
||||||
log-5xx = true
|
|
||||||
debug = true
|
|
||||||
|
|||||||
@@ -7,8 +7,5 @@ die-on-term = true
|
|||||||
processes = 2
|
processes = 2
|
||||||
threads = 2
|
threads = 2
|
||||||
single-interpreter = true
|
single-interpreter = true
|
||||||
buffer-size = 65535
|
buffer-size = 8192
|
||||||
wsgi-disable-file-wrapper = true
|
wsgi-disable-file-wrapper = true
|
||||||
log-4xx = true
|
|
||||||
log-5xx = true
|
|
||||||
debug = true
|
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ def init_env():
|
|||||||
}
|
}
|
||||||
|
|
||||||
config(options)
|
config(options)
|
||||||
print("Environment variables loaded successfully.")
|
|
||||||
|
|
||||||
init_env()
|
init_env()
|
||||||
|
|
||||||
@@ -58,7 +57,7 @@ SECRET_KEY=get_env_variable("INVENIO_SECRET_KEY")
|
|||||||
# provided, the allowed hosts variable is set to localhost. In production it
|
# provided, the allowed hosts variable is set to localhost. In production it
|
||||||
# should be set to the correct host and it is strongly recommended to only
|
# should be set to the correct host and it is strongly recommended to only
|
||||||
# route correct hosts to the application.
|
# route correct hosts to the application.
|
||||||
APP_ALLOWED_HOSTS = ['0.0.0.0', 'localhost', '127.0.0.1', 'am-d-modeleu-caddy-1']
|
APP_ALLOWED_HOSTS = ['0.0.0.0', 'localhost', '127.0.0.1', 'am-d-modeleu-repo-web-ui-1', 'repo-web-ui', 'am-d-modeleu-caddy-1', 'caddy']
|
||||||
|
|
||||||
|
|
||||||
# Flask-SQLAlchemy
|
# Flask-SQLAlchemy
|
||||||
@@ -170,7 +169,8 @@ FILES_REST_STORAGE_FACTORY='invenio_s3.s3fs_storage_factory'
|
|||||||
|
|
||||||
# Invenio-S3
|
# Invenio-S3
|
||||||
# ==========
|
# ==========
|
||||||
S3_ENDPOINT_URL='http://localhost:9000/'
|
S3_ENDPOINT_URL='https://s3.eu-west-1.amazonaws.com/'
|
||||||
|
S3_REGION_NAME='eu-west-1'
|
||||||
S3_ACCESS_KEY_ID=get_env_variable("S3_ACCESS_KEY_ID")
|
S3_ACCESS_KEY_ID=get_env_variable("S3_ACCESS_KEY_ID")
|
||||||
S3_SECRET_ACCESS_KEY=get_env_variable("S3_SECRET_ACCESS_KEY")
|
S3_SECRET_ACCESS_KEY=get_env_variable("S3_SECRET_ACCESS_KEY")
|
||||||
|
|
||||||
@@ -184,9 +184,9 @@ APP_DEFAULT_SECURE_HEADERS['content_security_policy']['default-src'].append(
|
|||||||
# See https://github.com/inveniosoftware/invenio-records-resources/blob/master/invenio_records_resources/config.py
|
# See https://github.com/inveniosoftware/invenio-records-resources/blob/master/invenio_records_resources/config.py
|
||||||
|
|
||||||
# TODO: Set with your own hostname when deploying to production
|
# TODO: Set with your own hostname when deploying to production
|
||||||
SITE_UI_URL = "https://am-d-model.eu/repo"
|
SITE_UI_URL = "https://invenio.am-d-model.eu"
|
||||||
|
|
||||||
SITE_API_URL = "https://am-d-model.eu/repo/api"
|
SITE_API_URL = "https://invenio.am-d-model.eu/api"
|
||||||
|
|
||||||
# Invenio-RDM-Records
|
# Invenio-RDM-Records
|
||||||
# ===================
|
# ===================
|
||||||
@@ -230,7 +230,7 @@ USERPROFILES_READ_ONLY = False # allow users to change profile info (name, emai
|
|||||||
# =======
|
# =======
|
||||||
# See https://github.com/inveniosoftware/invenio-oaiserver/blob/master/invenio_oaiserver/config.py
|
# See https://github.com/inveniosoftware/invenio-oaiserver/blob/master/invenio_oaiserver/config.py
|
||||||
|
|
||||||
OAISERVER_ID_PREFIX = "am-d-model.eu"
|
OAISERVER_ID_PREFIX = "invenio.am-d-model.eu"
|
||||||
"""The prefix that will be applied to the generated OAI-PMH ids."""
|
"""The prefix that will be applied to the generated OAI-PMH ids."""
|
||||||
OAISERVER_ADMIN_EMAILS = [
|
OAISERVER_ADMIN_EMAILS = [
|
||||||
"repo@am-d-model.eu",
|
"repo@am-d-model.eu",
|
||||||
@@ -239,7 +239,7 @@ OAISERVER_ADMIN_EMAILS = [
|
|||||||
# Invenio-Search
|
# Invenio-Search
|
||||||
# --------------
|
# --------------
|
||||||
|
|
||||||
SEARCH_INDEX_PREFIX = "am-d-model-data-repository-"
|
SEARCH_INDEX_PREFIX = "am-d-model-"
|
||||||
|
|
||||||
# Invenio-Users-Resources
|
# Invenio-Users-Resources
|
||||||
# -----------------------
|
# -----------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user