diff --git a/manifests/init.pp b/manifests/init.pp index 75d1801..3cfca35 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -369,6 +369,20 @@ class mastodon ( { 'error_code' => '504', 'document' => '/504' }, ], } + apache::vhost { "${hostname}_insecure": + ensure => $ensure, + servername => $hostname, + access_log_file => "${hostname}_insecure", + error_log_file => "${hostname}_insecure", + add_listen => false, + ip => '0.0.0.0', + port => 80, + docroot => '', + redirect_status => 'permanent', + redirect_dest => "https://${hostname}/", + server_signature => false, + } + # systemd units # systemctl enable --now mastodon-web mastodon-sidekiq mastodon-streaming }