From 39b8f4d605eae7ac00d3e05dae1edd6f62e06b61 Mon Sep 17 00:00:00 2001
From: Carlo Navarra <carlo.navarra@liu.se>
Date: Mon, 29 May 2023 23:10:15 +0000
Subject: [PATCH] Update init.pp

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

diff --git a/manifests/init.pp b/manifests/init.pp
index e6972cd..0c1e86f 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -67,6 +67,22 @@ class bright (
       server   => "${fact('networking.fqdn')} HTTPS",
       proxy    => 'http://localhost:8200/',
     }
+
+    nginx::resource::location { '/air/':
+      ensure   => present,
+      ssl      => true,
+      ssl_only => true,
+      server   => "${fact('networking.fqdn')} HTTPS",
+      proxy    => 'http://localhost:8300/',
+    }
+
+    nginx::resource::location { '/heat/':
+      ensure   => present,
+      ssl      => true,
+      ssl_only => true,
+      server   => "${fact('networking.fqdn')} HTTPS",
+      proxy    => 'http://localhost:8400/',
+    }
   }
 
   firewalld_service {
-- 
GitLab