From e322fbb1fbd1ef91c0e41786c54bc6a732685625 Mon Sep 17 00:00:00 2001 From: fpotier Date: Fri, 26 Jun 2026 11:13:18 +0200 Subject: [PATCH] add scicat-rocrate --- conf.d/scicat-rocrate.conf | 25 +++++++++++++++++++++++++ docker-compose.yaml | 11 +++++++++++ 2 files changed, 36 insertions(+) create mode 100644 conf.d/scicat-rocrate.conf diff --git a/conf.d/scicat-rocrate.conf b/conf.d/scicat-rocrate.conf new file mode 100644 index 0000000..284a5a6 --- /dev/null +++ b/conf.d/scicat-rocrate.conf @@ -0,0 +1,25 @@ +server { + listen 80; + server_name scicat-rocrate.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.psi.ch; + + ssl_certificate /etc/nginx/certs/scicat-rocrate.psi.ch.crt; + ssl_certificate_key /etc/nginx/private/scicat-rocrate.psi.ch.key; + + location / { + proxy_pass http://scicat-rocrate: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; + } +} \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml index 6d277a4..9d2eae5 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -177,6 +177,17 @@ services: - rhodo_network - backend + scicat-rocrate: + image: gitea.psi.ch/data-catalog-services/scicat-rocrate:2.5.2 + container_name: scicat-rocrate + restart: always + networks: + - backend + environment: + - QUARKUS_REST_CLIENT_SCICAT_URL=https://dacat.psi.ch + - QUARKUS_REST_CLIENT_S3BROKER_URL=https://s3-broker.psi.ch + - QUARKUS_HTTP_LIMITS_MAX_BODY_SIZE=10G + networks: public: backend: