From f06e5492315995716ae471f2ccfbce1b379c6888 Mon Sep 17 00:00:00 2001 From: Joakim Olovsson <joakim.olovsson@liu.se> Date: Wed, 14 Sep 2022 10:43:52 +0200 Subject: [PATCH] Try with further options to location directive --- manifests/init.pp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/manifests/init.pp b/manifests/init.pp index 376b32b..65eed56 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -19,7 +19,6 @@ class ai4ca ( listen_port => 443, www_root => $www_root, index_files => $index_files, - proxy => 'http://localhost:8100', ssl => true, ssl_cert => fact("letsencrypt_certs.\"${fact('networking.fqdn')}\".files.combined"), ssl_key => fact("letsencrypt_certs.\"${fact('networking.fqdn')}\".files.key"), @@ -27,6 +26,14 @@ 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 { '/test': + ensure => present, + ssl => true, + ssl_only => true, + server => "${fact('networking.fqdn')} HTTPS", + proxy => 'http://localhost:8100', + } + firewalld_service { 'nginx http LiU': zone => 'liu', -- GitLab