From 555fa09b40b66c5159f78002ced191688d2e12d0 Mon Sep 17 00:00:00 2001 From: Andrew Davison Date: Wed, 18 Dec 2024 16:41:55 +0100 Subject: [PATCH] add redirects for non-neuromorphic services to nginx config, since we don't have anywhere better to put them for the time being. --- api/deployment/nginx-app-prod.conf | 40 ++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/api/deployment/nginx-app-prod.conf b/api/deployment/nginx-app-prod.conf index 2140f4a..ab38c3a 100644 --- a/api/deployment/nginx-app-prod.conf +++ b/api/deployment/nginx-app-prod.conf @@ -80,3 +80,43 @@ server { server_name corsproxy.hbpneuromorphic.eu; return 301 https://corsproxy.apps.tc.humanbrainproject.eu/$request_uri; } + +server { + listen 443 ssl; + + ssl_certificate /etc/letsencrypt/live/live-papers.brainsimulation.eu/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/live-papers.brainsimulation.eu/privkey.pem; + + server_name live-papers.brainsimulation.eu; + return 301 https://live-papers.apps.ebrains.eu/$request_uri; +} + +server { + listen 443 ssl; + + ssl_certificate /etc/letsencrypt/live/model-catalog.brainsimulation.eu/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/model-catalog.brainsimulation.eu/privkey.pem; + + server_name model-catalog.brainsimulation.eu; + return 301 https://model-catalog.apps.ebrains.eu/$request_uri; +} + +server { + listen 443 ssl; + + ssl_certificate /etc/letsencrypt/live/validation.brainsimulation.eu/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/validation.brainsimulation.eu/privkey.pem; + + server_name validation.brainsimulation.eu; + return 301 https://model-validation-api.apps.ebrains.eu/$request_uri; +} + +server { + listen 443 ssl; + + ssl_certificate /etc/letsencrypt/live/prov.brainsimulation.eu/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/prov.brainsimulation.eu/privkey.pem; + + server_name prov.brainsimulation.eu; + return 301 https://prov-api.apps.tc.humanbrainproject.eu/; +}