forked from puppetlabs/puppetlabs-apache
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhttp2.conf.erb
65 lines (64 loc) · 2.54 KB
/
http2.conf.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# The http2 Apache module configuration file is being
# managed by Puppet and changes will be overwritten.
<%# Actually >= 2.4.24, but the minor version is not provided -%>
<% if !@h2_copy_files.nil? && scope.function_versioncmp([@_apache_version, '2.4']) >= 0 -%>
H2CopyFiles <%= scope.call_function('apache::bool2httpd', [@h2_copy_files]) %>
<% end -%>
<% unless @h2_direct.nil? -%>
H2Direct <%= scope.call_function('apache::bool2httpd', [@h2_direct]) %>
<% end -%>
<%# Actually >= 2.4.24, but the minor version is not provided -%>
<% if !@h2_early_hints.nil? && scope.function_versioncmp([@_apache_version, '2.4']) >= 0 -%>
H2EarlyHints <%= scope.call_function('apache::bool2httpd', [@h2_early_hints]) %>
<% end -%>
<% unless @h2_max_session_streams.nil? -%>
H2MaxSessionStreams <%= @h2_max_session_streams %>
<% end -%>
<% unless @h2_max_worker_idle_seconds.nil? -%>
H2MaxWorkerIdleSeconds <%= @h2_max_worker_idle_seconds %>
<% end -%>
<% unless @h2_max_workers.nil? -%>
H2MaxWorkers <%= @h2_max_workers %>
<% end -%>
<% unless @h2_min_workers.nil? -%>
H2MinWorkers <%= @h2_min_workers %>
<% end -%>
<%# Actually >= 2.4.24, but the minor version is not provided -%>
<% if scope.function_versioncmp([@_apache_version, '2.4']) >= 0 -%>
<%- unless @h2_modern_tls_only.nil? -%>
H2ModernTLSOnly <%= scope.call_function('apache::bool2httpd', [@h2_modern_tls_only]) %>
<%- end -%>
<%- unless @h2_push.nil? -%>
H2Push <%= scope.call_function('apache::bool2httpd', [@h2_push]) %>
<%- end -%>
<%- unless @h2_push_diary_size.nil? -%>
H2PushDiarySize <%= @h2_push_diary_size %>
<%- end -%>
<%- @h2_push_priority.each do |expr| -%>
H2PushPriority <%= expr %>
<%- end -%>
<%- @h2_push_resource.each do |expr| -%>
H2PushResource <%= expr %>
<%- end -%>
<% end -%>
<% unless @h2_serialize_headers.nil? -%>
H2SerializeHeaders <%= scope.call_function('apache::bool2httpd', [@h2_serialize_headers]) %>
<% end -%>
<% unless @h2_stream_max_mem_size.nil? -%>
H2StreamMaxMemSize <%= @h2_stream_max_mem_size %>
<% end -%>
<%# Actually >= 2.4.24, but the minor version is not provided -%>
<% if scope.function_versioncmp([@_apache_version, '2.4']) >= 0 -%>
<%- unless @h2_tls_cool_down_secs.nil? -%>
H2TLSCoolDownSecs <%= @h2_tls_cool_down_secs %>
<%- end -%>
<%- unless @h2_tls_warm_up_size.nil? -%>
H2TLSWarmUpSize <%= @h2_tls_warm_up_size %>
<%- end -%>
<% end -%>
<% unless @h2_upgrade.nil? -%>
H2Upgrade <%= scope.call_function('apache::bool2httpd', [@h2_upgrade]) %>
<% end -%>
<% unless @h2_window_size.nil? -%>
H2WindowSize <%= @h2_window_size %>
<% end -%>