From fa4a92f0c858d8d10ecb7aab4849ef0963f5997f Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Tue, 28 Nov 2023 20:09:22 +0200 Subject: [PATCH] change server signature --- manifests/init.pp | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index 24149f5..3fe3e8e 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -337,6 +337,8 @@ class mastodon ( { 'path' => '/mask-icon.svg', 'url' => '!' }, ], custom_fragment => ' + ServerSignature Off + ProxyPass /api/v1/streaming ws://localhost:4000 ProxyPassReverse /api/v1/streaming ws://localhost:4000 ProxyPass / http://localhost:3000/ @@ -388,17 +390,17 @@ class mastodon ( require => Exec["register-${hostname}-letsencrypt"], } 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 => "${mastodon_home}/live/public", - redirect_status => 'permanent', - redirect_dest => "https://${hostname}/", - server_signature => false, + 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 => "${mastodon_home}/live/public", + redirect_status => 'permanent', + redirect_dest => "https://${hostname}/", + custom_fragment => 'ServerSignature Off', } # systemd units