From cb836628baa37455fae8dd079c28bb36a2d51e3e Mon Sep 17 00:00:00 2001 From: carna56 <carlo.navarra@liu.se> Date: Mon, 17 Apr 2023 21:55:19 +0200 Subject: [PATCH] added proxy --- manifests/init.pp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/manifests/init.pp b/manifests/init.pp index 211d8c9..426d493 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -51,13 +51,21 @@ 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', # lint:ignore:140chars } - nginx::resource::location { '/va': + nginx::resource::location { '/va/': ensure => present, ssl => true, ssl_only => true, server => "${fact('networking.fqdn')} HTTPS", 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 { -- GitLab