diff --git a/manifests/init.pp b/manifests/init.pp index 926e702..0ce6f85 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -200,6 +200,9 @@ class cgit( ssl_key_file_contents => $ssl_key_file_contents, staticfiles => $staticfiles, cgit_vhost_name => $vhost_name, + # Make default site have lower vhost priority for better compatibility + # with non SNI capable clients. + cgit_vhost_priority => '25', } } } diff --git a/manifests/site.pp b/manifests/site.pp index c48893e..80c1180 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -31,6 +31,7 @@ define cgit::site( $staticfiles = '/var/www/cgit/static', $local_git_dir = '/var/lib/git', $cgit_vhost_name = $::fqdn, + $cgit_vhost_priority = '50', ) { $default_cgitrc_settings = { 'cache-size' => 1000, @@ -93,7 +94,7 @@ define cgit::site( port => $https_port, serveraliases => $serveraliases, docroot => 'MEANINGLESS ARGUMENT', - priority => '50', + priority => $cgit_vhost_priority, template => 'cgit/git.vhost.erb', ssl => true, require => [