From 827c6fba1d523a7873dd6fe04eb998eb32f7b4dc Mon Sep 17 00:00:00 2001
From: Carlo Navarra <carlo.navarra@liu.se>
Date: Sat, 29 Mar 2025 20:15:51 +0000
Subject: [PATCH] add locations nginx

---
 manifests/init.pp | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/manifests/init.pp b/manifests/init.pp
index 471caef..6df4172 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -84,6 +84,22 @@ class bright (
       proxy    => 'http://localhost:8400/'
     }
 
+    nginx::resource::location { '/air-gic/':
+      ensure   => present,
+      ssl      => true,
+      ssl_only => true,
+      server   => "${fact('networking.fqdn')} HTTPS",
+      proxy    => 'http://localhost:8320/'
+    }
+
+    nginx::resource::location { '/heat-gic/':
+      ensure   => present,
+      ssl      => true,
+      ssl_only => true,
+      server   => "${fact('networking.fqdn')} HTTPS",
+      proxy    => 'http://localhost:8420/'
+    }
+
   }
 
   firewalld_service {
-- 
GitLab