From acd381abbeccaa5231fe229126aab12281292e93 Mon Sep 17 00:00:00 2001 From: Andrew Davison Date: Tue, 27 Aug 2024 17:26:56 +0200 Subject: [PATCH] Changes for deployment with EBRAINS Rancher/Kubernetes service --- apps/deployment/Dockerfile.prod | 1 - apps/deployment/nginx-app.conf | 8 +------- apps/model_catalog/src/globals.js | 2 +- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/apps/deployment/Dockerfile.prod b/apps/deployment/Dockerfile.prod index f7dd204..3b97740 100644 --- a/apps/deployment/Dockerfile.prod +++ b/apps/deployment/Dockerfile.prod @@ -29,5 +29,4 @@ COPY deployment/nginx-app.conf /etc/nginx/conf.d/default.conf COPY --from=build /model-catalog/build /usr/share/nginx/html/model-catalog COPY --from=build /curation-dashboard/build /usr/share/nginx/html/curation-dashboard EXPOSE 80 -EXPOSE 443 CMD ["nginx", "-g", "daemon off;"] diff --git a/apps/deployment/nginx-app.conf b/apps/deployment/nginx-app.conf index 6ab6a6d..0391022 100644 --- a/apps/deployment/nginx-app.conf +++ b/apps/deployment/nginx-app.conf @@ -2,13 +2,7 @@ server { - listen 443 ssl; - - # ssl on; - 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; + listen 80; location / { root /usr/share/nginx/html/model-catalog; diff --git a/apps/model_catalog/src/globals.js b/apps/model_catalog/src/globals.js index 5125d2a..188a4ab 100755 --- a/apps/model_catalog/src/globals.js +++ b/apps/model_catalog/src/globals.js @@ -1,6 +1,6 @@ // NOTE: dummy data (in 'dev_data' directory) for DevMode is from v1 APIs; needs to be updated for v2 usage export const DevMode = false; // TODO: change to false for production -export const baseUrl = "https://validation.brainsimulation.eu"; +export const baseUrl = "https://model-validation-api.apps.tc.humanbrainproject.eu"; export const querySizeLimit = 1000000; export const collaboratoryOrigin = "https://wiki.ebrains.eu"; export const hashChangedTopic = "/clb/community-app/hashchange";