change server signature
This commit is contained in:
parent
f0d2f67618
commit
fa4a92f0c8
1 changed files with 13 additions and 11 deletions
|
@ -337,6 +337,8 @@ class mastodon (
|
||||||
{ 'path' => '/mask-icon.svg', 'url' => '!' },
|
{ 'path' => '/mask-icon.svg', 'url' => '!' },
|
||||||
],
|
],
|
||||||
custom_fragment => '
|
custom_fragment => '
|
||||||
|
ServerSignature Off
|
||||||
|
|
||||||
ProxyPass /api/v1/streaming ws://localhost:4000
|
ProxyPass /api/v1/streaming ws://localhost:4000
|
||||||
ProxyPassReverse /api/v1/streaming ws://localhost:4000
|
ProxyPassReverse /api/v1/streaming ws://localhost:4000
|
||||||
ProxyPass / http://localhost:3000/
|
ProxyPass / http://localhost:3000/
|
||||||
|
@ -388,17 +390,17 @@ class mastodon (
|
||||||
require => Exec["register-${hostname}-letsencrypt"],
|
require => Exec["register-${hostname}-letsencrypt"],
|
||||||
}
|
}
|
||||||
apache::vhost { "${hostname}_insecure":
|
apache::vhost { "${hostname}_insecure":
|
||||||
ensure => $ensure,
|
ensure => $ensure,
|
||||||
servername => $hostname,
|
servername => $hostname,
|
||||||
access_log_file => "${hostname}_insecure",
|
access_log_file => "${hostname}_insecure",
|
||||||
error_log_file => "${hostname}_insecure",
|
error_log_file => "${hostname}_insecure",
|
||||||
add_listen => false,
|
add_listen => false,
|
||||||
ip => '0.0.0.0',
|
ip => '0.0.0.0',
|
||||||
port => 80,
|
port => 80,
|
||||||
docroot => "${mastodon_home}/live/public",
|
docroot => "${mastodon_home}/live/public",
|
||||||
redirect_status => 'permanent',
|
redirect_status => 'permanent',
|
||||||
redirect_dest => "https://${hostname}/",
|
redirect_dest => "https://${hostname}/",
|
||||||
server_signature => false,
|
custom_fragment => 'ServerSignature Off',
|
||||||
}
|
}
|
||||||
|
|
||||||
# systemd units
|
# systemd units
|
||||||
|
|
Loading…
Reference in a new issue