diff options
| author | alex <alex@pdp7.net> | 2023-10-08 14:22:26 +0200 |
|---|---|---|
| committer | alex <alex@pdp7.net> | 2023-10-08 14:22:26 +0200 |
| commit | 177079699d7b81c81976a529ab1f3205abc1a17e (patch) | |
| tree | 0564865374ffde220ac21e2cd43e6855883ca903 /personal_infra/puppet | |
| parent | 708a5f688babc1a23e85ced758665bb22d93919b (diff) | |
Add automatic https redirection to Proxmox proxies
Diffstat (limited to 'personal_infra/puppet')
| -rw-r--r-- | personal_infra/puppet/modules/proxmox/manifests/proxy_host.pp | 5 |
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 |
