Skip to content

Commit

Permalink
ncm-metaconfig: httpd - add h2 options
Browse files Browse the repository at this point in the history
  • Loading branch information
wdpypere committed Apr 12, 2021
1 parent 400aba5 commit 21501c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ncm-metaconfig/src/main/metaconfig/httpd/config/vhost.tt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ hostnamelookups [% vhost.hostnamelookups ? "on" : "off" %]
[% IF vhost.exists('limitrequestbody') %]
limitrequestbody [% vhost.limitrequestbody %]
[% END -%]

[% IF vhost.exists('protocols') -%]
protocols [% vhost.protocols.join(' ') %]
[% END -%]
[%- to_process = ['ssl', 'nss', 'env', 'aliases', 'rewrite', 'redirect',
'perl', 'wsgi', 'log', 'rails', 'browsermatch', 'passenger', 'oidc', 'header'] -%]
[%- FOREACH p IN to_process -%]
Expand Down
3 changes: 3 additions & 0 deletions ncm-metaconfig/src/main/metaconfig/httpd/pan/schema.pan
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ type httpd_nss_cipherstring = string with match(SELF, '^(-(rsa_3des_sha|rsa_des_
'ecdhe_rsa_aes_256_sha|ecdhe_rsa_aes_256_sha_384|ecdh_rsa_aes_128_sha|ecdh_rsa_aes_256_sha|' +
'rsa_aes_128_gcm_sha_256|rsa_aes_128_sha|rsa_aes_256_gcm_sha_384|rsa_aes_256_sha))$');

type httpd_protocols = choice("h2", "h2c", "http/1.1");

@documentation{
Either all Options must start with + or -, or no Option may.
}
Expand Down Expand Up @@ -620,6 +622,7 @@ type httpd_vhost = {
"browsermatch" ? httpd_browsermatch[]
"passenger" ? httpd_passenger_vhost
"header" ? httpd_header[]
"protocols" ? httpd_protocols[]
};

# system wide settings
Expand Down

0 comments on commit 21501c7

Please sign in to comment.