aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralex <alex@pdp7.net>2023-10-08 14:22:26 +0200
committeralex <alex@pdp7.net>2023-10-08 14:22:26 +0200
commit177079699d7b81c81976a529ab1f3205abc1a17e (patch)
tree0564865374ffde220ac21e2cd43e6855883ca903
parent708a5f688babc1a23e85ced758665bb22d93919b (diff)
Add automatic https redirection to Proxmox proxies
-rw-r--r--personal_infra/puppet/modules/proxmox/manifests/proxy_host.pp5
1 files changed, 5 insertions, 0 deletions
diff --git a/personal_infra/puppet/modules/proxmox/manifests/proxy_host.pp b/personal_infra/puppet/modules/proxmox/manifests/proxy_host.pp
index 583fb5bc..b60caf4c 100644
--- a/personal_infra/puppet/modules/proxmox/manifests/proxy_host.pp
+++ b/personal_infra/puppet/modules/proxmox/manifests/proxy_host.pp
@@ -13,6 +13,11 @@ define proxmox::proxy_host (String[1] $target, Optional[String[1]] $overwrite_rh
content => @("EOT")
MDomain $title
+ <VirtualHost *:80>
+ ServerName $title
+ Redirect permanent / https://$title/
+ </VirtualHost>
+
<VirtualHost *:443>
ServerName $title
SSLEngine on