add insecure vhost redirection
This commit is contained in:
parent
1a0570a495
commit
d0f689da6c
1 changed files with 14 additions and 0 deletions
|
@ -369,6 +369,20 @@ class mastodon (
|
||||||
{ 'error_code' => '504', 'document' => '/504' },
|
{ '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
|
# systemd units
|
||||||
# systemctl enable --now mastodon-web mastodon-sidekiq mastodon-streaming
|
# systemctl enable --now mastodon-web mastodon-sidekiq mastodon-streaming
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue