]> xn--ix-yja.es Git - alex.git/commitdiff
Proxy fixes
authoralex <alex@pdp7.net>
Sat, 11 Mar 2023 13:15:09 +0000 (14:15 +0100)
committeralex <alex@pdp7.net>
Sat, 11 Mar 2023 13:15:09 +0000 (14:15 +0100)
personal_infra/puppet/modules/proxmox/manifests/proxy.pp
personal_infra/puppet/modules/proxmox/manifests/proxy_host.pp
personal_infra/puppet/site/h1.pdp7.net.pp

index 2a07c44c3dbd2f1589bafeefd40a65f868b4e243..b8c1b9ded9ba407f4a2406aa7fe9d3a67b09a152 100644 (file)
@@ -12,7 +12,7 @@ class proxmox::proxy ($mail, $base_hostname) {
     notify => Service['apache2'],
   }
 
-  ['md', 'ssl'].each |$mod| {
+  ['md', 'ssl', 'proxy_http', 'proxy'].each |$mod| {
     exec {"/usr/sbin/a2enmod $mod":
       creates => "/etc/apache2/mods-enabled/$mod.load",
       * => $apache_dep,
index 33b28de0d3773dd0cf8cbf7f769eeaa2457b544b..d1c6faf60c0c2ac7632ee306740447c62c402249 100644 (file)
@@ -6,6 +6,12 @@ define proxmox::proxy_host (String[1] $target) {
       <VirtualHost *:443>
         ServerName $title
         SSLEngine on
+
+        ProxyPass "/" "$target"
+        ProxyPassReverse "/" "$target"
+        ProxyPreservehost On
+        SSLProxyEngine on
+
       </VirtualHost>
     | EOT
     ,
index b64871c1f58b7c228b4ad33868f4b64671f13d6e..875b213dd2b392e56d75cb0c265a40e605a48535 100644 (file)
@@ -11,6 +11,6 @@ node 'h1.pdp7.net' {
   }
 
   proxmox::proxy_host {'ipsilon-test.pdp7.net':
-    target => 'ipsilon-test.h1.int.pdp7.net',
+    target => 'https://ipsilon-test.h1.int.pdp7.net/',
   }
 }