From 6a6cb38554ddf514ed2bd2abcc2edfa0069e2864 Mon Sep 17 00:00:00 2001
From: Martin Weise <martin.weise@tuwien.ac.at>
Date: Mon, 4 Dec 2023 05:12:46 +0100
Subject: [PATCH] Remove admin UI links and gateway location

---
 dbrepo-gateway-service/dbrepo.conf | 20 --------------------
 dbrepo-ui/dbrepo.config.json       |  5 -----
 2 files changed, 25 deletions(-)

diff --git a/dbrepo-gateway-service/dbrepo.conf b/dbrepo-gateway-service/dbrepo.conf
index 38f846d0c6..d05efc2ef9 100644
--- a/dbrepo-gateway-service/dbrepo.conf
+++ b/dbrepo-gateway-service/dbrepo.conf
@@ -30,10 +30,6 @@ upstream search-db-dashboard {
     server search-db-dashboard:5601;
 }
 
-upstream storage-service {
-    server storage-service:9001;
-}
-
 upstream upload {
     server upload-service:1080;
 }
@@ -60,22 +56,6 @@ server {
         proxy_read_timeout      90;
     }
 
-    location /admin/storage/ {
-        rewrite /admin/storage/(.*) /$1 break;
-        # http
-        proxy_http_version 1.1;
-        proxy_set_header Upgrade $http_upgrade;
-        proxy_set_header Connection "upgrade";
-        chunked_transfer_encoding off;
-        # proxy
-        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_pass              http://storage-service;
-        proxy_read_timeout      90;
-    }
-
     location /api/broker {
         rewrite /api/broker/(.*) /admin/broker/api/$1 break;
         proxy_set_header        Host $host;
diff --git a/dbrepo-ui/dbrepo.config.json b/dbrepo-ui/dbrepo.config.json
index 7ae9d88cc0..ba2286af33 100644
--- a/dbrepo-ui/dbrepo.config.json
+++ b/dbrepo-ui/dbrepo.config.json
@@ -61,11 +61,6 @@
           "blank": true,
           "href": "http://localhost/admin/dashboard/"
         },
-        {
-          "text": "Storage Admin",
-          "blank": true,
-          "href": "http://localhost/admin/storage/"
-        },
         {
           "text": "RabbitMQ Admin",
           "blank": true,
-- 
GitLab