From b790b97a0e2bc22e0cc07e092160c835e6a97b32 Mon Sep 17 00:00:00 2001
From: carna56 <carlo.navarra@liu.se>
Date: Mon, 17 Apr 2023 21:24:09 +0200
Subject: [PATCH] added proxy to localhost:8200

---
 manifests/init.pp | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/manifests/init.pp b/manifests/init.pp
index 54a96ee..2701948 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -36,7 +36,7 @@ class ai4ca (
     ssl_ciphers   => 'ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384',
   }
 
-  nginx::resource::location { '/va':
+  nginx::resource::location { '/va/':
     ensure   => present,
     ssl      => true,
     ssl_only => true,
@@ -44,6 +44,14 @@ class ai4ca (
     proxy    => 'http://localhost:8100/',
   }
 
+  nginx::resource::location { '/app/':
+    ensure   => present,
+    ssl      => true,
+    ssl_only => true,
+    server   => "${fact('networking.fqdn')} HTTPS",
+    proxy    => 'http://localhost:8200/',
+  }
+
   firewalld_service {
     'nginx http LiU':
       zone    => 'liu',
-- 
GitLab