From 4605a16ed23905cd9962be181e6a4ed5d673737e Mon Sep 17 00:00:00 2001 From: fpotier Date: Fri, 26 Jun 2026 11:10:00 +0200 Subject: [PATCH] add scicat-rocrate-qa --- conf.d/scicat-rocrate-qa.conf | 25 +++++++++++++++++++++++++ docker-compose.yaml | 13 +++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 conf.d/scicat-rocrate-qa.conf diff --git a/conf.d/scicat-rocrate-qa.conf b/conf.d/scicat-rocrate-qa.conf new file mode 100644 index 0000000..1c405c2 --- /dev/null +++ b/conf.d/scicat-rocrate-qa.conf @@ -0,0 +1,25 @@ +server { + listen 80; + server_name scicat-rocrate-qa.psi.ch; + client_max_body_size 10G; + return 301 https://$host$request_uri; +} + +server { + listen 443 ssl; + client_max_body_size 10G; + server_name scicat-rocrate-qa.psi.ch; + + ssl_certificate /etc/nginx/certs/scicat-rocrate-qa.psi.ch.crt; + ssl_certificate_key /etc/nginx/private/scicat-rocrate-qa.psi.ch.key; + + location / { + proxy_pass http://scicat-rocrate-qa:8080; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header Cookie $http_cookie; + proxy_set_header Authorization $http_authorization; + } +} diff --git a/docker-compose.yaml b/docker-compose.yaml index ddceed4..5ef6f09 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -493,6 +493,19 @@ services: volumes: - /opt/webcontent/rocrate-dev/dev:/ro-crate:rw + scicat-rocrate-qa: + image: gitea.psi.ch/data-catalog-services/scicat-rocrate:2.5.2 + container_name: scicat-rocrate-qa + restart: always + networks: + - backend + environment: + - QUARKUS_REST_CLIENT_SCICAT_URL=https://dacat-qa.psi.ch + - QUARKUS_REST_CLIENT_S3BROKER_URL=https://s3-broker.qa.psi.ch + - QUARKUS_HTTP_LIMITS_MAX_BODY_SIZE=10G + volumes: + - /opt/webcontent/rocrate-dev/qa:/ro-crate:rw + networks: public: backend: