|
3 | 3 | class nginx::config { |
4 | 4 | assert_private() |
5 | 5 |
|
6 | | - $client_body_temp_path = $nginx::client_body_temp_path |
7 | | - $confd_only = $nginx::confd_only |
8 | | - $confd_purge = $nginx::confd_purge |
9 | | - $conf_dir = $nginx::conf_dir |
10 | | - $daemon = $nginx::daemon |
11 | | - $daemon_user = $nginx::daemon_user |
12 | | - $daemon_group = $nginx::daemon_group |
13 | | - $dynamic_modules = $nginx::dynamic_modules |
14 | | - $global_owner = $nginx::global_owner |
15 | | - $global_group = $nginx::global_group |
16 | | - $global_mode = $nginx::global_mode |
17 | | - $limit_req_zone = $nginx::limit_req_zone |
18 | | - $log_dir = $nginx::log_dir |
19 | | - $log_user = $nginx::log_user |
20 | | - $log_group = $nginx::log_group |
21 | | - $log_mode = $nginx::log_mode |
22 | | - $http_access_log = $nginx::http_access_log |
23 | | - $http_format_log = $nginx::http_format_log |
24 | | - $stream_access_log = $nginx::stream_access_log |
25 | | - $stream_custom_format_log = $nginx::stream_custom_format_log |
26 | | - $nginx_error_log = $nginx::nginx_error_log |
27 | | - $nginx_error_log_severity = $nginx::nginx_error_log_severity |
28 | | - $pid = $nginx::pid |
29 | | - $proxy_temp_path = $nginx::proxy_temp_path |
30 | | - $root_group = $nginx::root_group |
31 | | - $sites_available_owner = $nginx::sites_available_owner |
32 | | - $sites_available_group = $nginx::sites_available_group |
33 | | - $sites_available_mode = $nginx::sites_available_mode |
34 | | - $super_user = $nginx::super_user |
35 | | - $temp_dir = $nginx::temp_dir |
36 | | - $server_purge = $nginx::server_purge |
37 | | - $absolute_redirect = $nginx::absolute_redirect |
38 | | - $accept_mutex = $nginx::accept_mutex |
39 | | - $accept_mutex_delay = $nginx::accept_mutex_delay |
40 | | - $client_body_buffer_size = $nginx::client_body_buffer_size |
41 | | - $client_max_body_size = $nginx::client_max_body_size |
42 | | - $client_body_timeout = $nginx::client_body_timeout |
43 | | - $send_timeout = $nginx::send_timeout |
44 | | - $lingering_timeout = $nginx::lingering_timeout |
45 | | - $lingering_close = $nginx::lingering_close |
46 | | - $lingering_time = $nginx::lingering_time |
47 | | - $reset_timedout_connection = $nginx::reset_timedout_connection |
48 | | - $etag = $nginx::etag |
49 | | - $events_use = $nginx::events_use |
50 | | - $debug_connections = $nginx::debug_connections |
51 | | - $fastcgi_cache_inactive = $nginx::fastcgi_cache_inactive |
52 | | - $fastcgi_cache_key = $nginx::fastcgi_cache_key |
53 | | - $fastcgi_cache_keys_zone = $nginx::fastcgi_cache_keys_zone |
54 | | - $fastcgi_cache_levels = $nginx::fastcgi_cache_levels |
55 | | - $fastcgi_cache_max_size = $nginx::fastcgi_cache_max_size |
56 | | - $fastcgi_cache_path = $nginx::fastcgi_cache_path |
57 | | - $fastcgi_cache_use_stale = $nginx::fastcgi_cache_use_stale |
58 | | - $gzip = $nginx::gzip |
59 | | - $gzip_buffers = $nginx::gzip_buffers |
60 | | - $gzip_comp_level = $nginx::gzip_comp_level |
61 | | - $gzip_disable = $nginx::gzip_disable |
62 | | - $gzip_min_length = $nginx::gzip_min_length |
63 | | - $gzip_http_version = $nginx::gzip_http_version |
64 | | - $gzip_proxied = $nginx::gzip_proxied |
65 | | - $gzip_types = $nginx::gzip_types |
66 | | - $gzip_vary = $nginx::gzip_vary |
67 | | - $gzip_static = $nginx::gzip_static |
68 | | - $http_raw_prepend = $nginx::http_raw_prepend |
69 | | - $http_raw_append = $nginx::http_raw_append |
70 | | - $http_cfg_prepend = $nginx::http_cfg_prepend |
71 | | - $http_cfg_append = $nginx::http_cfg_append |
72 | | - $http_tcp_nodelay = $nginx::http_tcp_nodelay |
73 | | - $http_tcp_nopush = $nginx::http_tcp_nopush |
74 | | - $keepalive_timeout = $nginx::keepalive_timeout |
75 | | - $keepalive_requests = $nginx::keepalive_requests |
76 | | - $log_format = $nginx::log_format |
77 | | - $stream_log_format = $nginx::stream_log_format |
78 | | - $mail = $nginx::mail |
79 | | - $mime_types_path = $nginx::mime_types_path |
80 | | - $stream = $nginx::stream |
81 | | - $map_hash_bucket_size = $nginx::map_hash_bucket_size |
82 | | - $map_hash_max_size = $nginx::map_hash_max_size |
83 | | - $mime_types = $nginx::mime_types_preserve_defaults ? { |
| 6 | + $client_body_temp_path = $nginx::client_body_temp_path |
| 7 | + $confd_only = $nginx::confd_only |
| 8 | + $confd_purge = $nginx::confd_purge |
| 9 | + $conf_dir = $nginx::conf_dir |
| 10 | + $daemon = $nginx::daemon |
| 11 | + $daemon_user = $nginx::daemon_user |
| 12 | + $daemon_group = $nginx::daemon_group |
| 13 | + $dynamic_modules = $nginx::dynamic_modules |
| 14 | + $global_owner = $nginx::global_owner |
| 15 | + $global_group = $nginx::global_group |
| 16 | + $global_mode = $nginx::global_mode |
| 17 | + $limit_req_zone = $nginx::limit_req_zone |
| 18 | + $log_dir = $nginx::log_dir |
| 19 | + $log_user = $nginx::log_user |
| 20 | + $log_group = $nginx::log_group |
| 21 | + $log_mode = $nginx::log_mode |
| 22 | + $http_access_log = $nginx::http_access_log |
| 23 | + $http_format_log = $nginx::http_format_log |
| 24 | + $stream_access_log = $nginx::stream_access_log |
| 25 | + $stream_custom_format_log = $nginx::stream_custom_format_log |
| 26 | + $nginx_error_log = $nginx::nginx_error_log |
| 27 | + $nginx_error_log_severity = $nginx::nginx_error_log_severity |
| 28 | + $pid = $nginx::pid |
| 29 | + $proxy_temp_path = $nginx::proxy_temp_path |
| 30 | + $root_group = $nginx::root_group |
| 31 | + $sites_available_owner = $nginx::sites_available_owner |
| 32 | + $sites_available_group = $nginx::sites_available_group |
| 33 | + $sites_available_mode = $nginx::sites_available_mode |
| 34 | + $super_user = $nginx::super_user |
| 35 | + $temp_dir = $nginx::temp_dir |
| 36 | + $server_purge = $nginx::server_purge |
| 37 | + $absolute_redirect = $nginx::absolute_redirect |
| 38 | + $accept_mutex = $nginx::accept_mutex |
| 39 | + $accept_mutex_delay = $nginx::accept_mutex_delay |
| 40 | + $client_body_buffer_size = $nginx::client_body_buffer_size |
| 41 | + $client_max_body_size = $nginx::client_max_body_size |
| 42 | + $client_body_timeout = $nginx::client_body_timeout |
| 43 | + $send_timeout = $nginx::send_timeout |
| 44 | + $lingering_timeout = $nginx::lingering_timeout |
| 45 | + $lingering_close = $nginx::lingering_close |
| 46 | + $lingering_time = $nginx::lingering_time |
| 47 | + $reset_timedout_connection = $nginx::reset_timedout_connection |
| 48 | + $etag = $nginx::etag |
| 49 | + $events_use = $nginx::events_use |
| 50 | + $debug_connections = $nginx::debug_connections |
| 51 | + $fastcgi_cache_inactive = $nginx::fastcgi_cache_inactive |
| 52 | + $fastcgi_cache_key = $nginx::fastcgi_cache_key |
| 53 | + $fastcgi_cache_keys_zone = $nginx::fastcgi_cache_keys_zone |
| 54 | + $fastcgi_cache_levels = $nginx::fastcgi_cache_levels |
| 55 | + $fastcgi_cache_max_size = $nginx::fastcgi_cache_max_size |
| 56 | + $fastcgi_cache_path = $nginx::fastcgi_cache_path |
| 57 | + $fastcgi_cache_use_stale = $nginx::fastcgi_cache_use_stale |
| 58 | + $gzip = $nginx::gzip |
| 59 | + $gzip_buffers = $nginx::gzip_buffers |
| 60 | + $gzip_comp_level = $nginx::gzip_comp_level |
| 61 | + $gzip_disable = $nginx::gzip_disable |
| 62 | + $gzip_min_length = $nginx::gzip_min_length |
| 63 | + $gzip_http_version = $nginx::gzip_http_version |
| 64 | + $gzip_proxied = $nginx::gzip_proxied |
| 65 | + $gzip_types = $nginx::gzip_types |
| 66 | + $gzip_vary = $nginx::gzip_vary |
| 67 | + $gzip_static = $nginx::gzip_static |
| 68 | + $http_raw_prepend = $nginx::http_raw_prepend |
| 69 | + $http_raw_append = $nginx::http_raw_append |
| 70 | + $http_cfg_prepend = $nginx::http_cfg_prepend |
| 71 | + $http_cfg_append = $nginx::http_cfg_append |
| 72 | + $http_tcp_nodelay = $nginx::http_tcp_nodelay |
| 73 | + $http_tcp_nopush = $nginx::http_tcp_nopush |
| 74 | + $keepalive_timeout = $nginx::keepalive_timeout |
| 75 | + $keepalive_requests = $nginx::keepalive_requests |
| 76 | + $log_format = $nginx::log_format |
| 77 | + $stream_log_format = $nginx::stream_log_format |
| 78 | + $mail = $nginx::mail |
| 79 | + $mime_types_path = $nginx::mime_types_path |
| 80 | + $stream = $nginx::stream |
| 81 | + $map_hash_bucket_size = $nginx::map_hash_bucket_size |
| 82 | + $map_hash_max_size = $nginx::map_hash_max_size |
| 83 | + $mime_types = $nginx::mime_types_preserve_defaults ? { |
84 | 84 | true => $nginx::params::mime_types + $nginx::mime_types, |
85 | 85 | default => $nginx::mime_types, |
86 | 86 | } |
87 | | - $multi_accept = $nginx::multi_accept |
88 | | - $names_hash_bucket_size = $nginx::names_hash_bucket_size |
89 | | - $names_hash_max_size = $nginx::names_hash_max_size |
90 | | - $nginx_cfg_prepend = $nginx::nginx_cfg_prepend |
91 | | - $proxy_buffers = $nginx::proxy_buffers |
92 | | - $proxy_buffer_size = $nginx::proxy_buffer_size |
93 | | - $proxy_busy_buffers_size = $nginx::proxy_busy_buffers_size |
94 | | - $proxy_cache_inactive = $nginx::proxy_cache_inactive |
95 | | - $proxy_cache_keys_zone = $nginx::proxy_cache_keys_zone |
96 | | - $proxy_cache_levels = $nginx::proxy_cache_levels |
97 | | - $proxy_cache_max_size = $nginx::proxy_cache_max_size |
98 | | - $proxy_cache_path = $nginx::proxy_cache_path |
99 | | - $proxy_cache_loader_files = $nginx::proxy_cache_loader_files |
100 | | - $proxy_cache_loader_sleep = $nginx::proxy_cache_loader_sleep |
101 | | - $proxy_cache_loader_threshold = $nginx::proxy_cache_loader_threshold |
102 | | - $proxy_use_temp_path = $nginx::proxy_use_temp_path |
103 | | - $proxy_connect_timeout = $nginx::proxy_connect_timeout |
| 87 | + $multi_accept = $nginx::multi_accept |
| 88 | + $names_hash_bucket_size = $nginx::names_hash_bucket_size |
| 89 | + $names_hash_max_size = $nginx::names_hash_max_size |
| 90 | + $nginx_cfg_prepend = $nginx::nginx_cfg_prepend |
| 91 | + $proxy_buffers = $nginx::proxy_buffers |
| 92 | + $proxy_buffer_size = $nginx::proxy_buffer_size |
| 93 | + $proxy_busy_buffers_size = $nginx::proxy_busy_buffers_size |
| 94 | + $proxy_cache_inactive = $nginx::proxy_cache_inactive |
| 95 | + $proxy_cache_keys_zone = $nginx::proxy_cache_keys_zone |
| 96 | + $proxy_cache_levels = $nginx::proxy_cache_levels |
| 97 | + $proxy_cache_max_size = $nginx::proxy_cache_max_size |
| 98 | + $proxy_cache_path = $nginx::proxy_cache_path |
| 99 | + $proxy_cache_loader_files = $nginx::proxy_cache_loader_files |
| 100 | + $proxy_cache_loader_sleep = $nginx::proxy_cache_loader_sleep |
| 101 | + $proxy_cache_loader_threshold = $nginx::proxy_cache_loader_threshold |
| 102 | + $proxy_use_temp_path = $nginx::proxy_use_temp_path |
| 103 | + $proxy_connect_timeout = $nginx::proxy_connect_timeout |
104 | 104 | $proxy_headers_hash_bucket_size = $nginx::proxy_headers_hash_bucket_size |
105 | | - $proxy_headers_hash_max_size = $nginx::proxy_headers_hash_max_size |
106 | | - $proxy_http_version = $nginx::proxy_http_version |
107 | | - $proxy_max_temp_file_size = $nginx::proxy_max_temp_file_size |
108 | | - $proxy_read_timeout = $nginx::proxy_read_timeout |
109 | | - $proxy_redirect = $nginx::proxy_redirect |
110 | | - $proxy_send_timeout = $nginx::proxy_send_timeout |
111 | | - $proxy_set_header = $nginx::proxy_set_header |
112 | | - $proxy_hide_header = $nginx::proxy_hide_header |
113 | | - $proxy_pass_header = $nginx::proxy_pass_header |
114 | | - $real_ip_header = $nginx::real_ip_header |
115 | | - $real_ip_recursive = $nginx::real_ip_recursive |
116 | | - $set_real_ip_from = $nginx::set_real_ip_from |
117 | | - $sendfile = $nginx::sendfile |
118 | | - $server_tokens = $nginx::server_tokens |
119 | | - $spdy = $nginx::spdy |
120 | | - $http2 = $nginx::http2 |
121 | | - $ssl_buffer_size = $nginx::ssl_buffer_size |
122 | | - $ssl_ciphers = $nginx::ssl_ciphers |
123 | | - $ssl_crl = $nginx::ssl_crl |
124 | | - $ssl_dhparam = $nginx::ssl_dhparam |
125 | | - $ssl_ecdh_curve = $nginx::ssl_ecdh_curve |
126 | | - $ssl_session_cache = $nginx::ssl_session_cache |
127 | | - $ssl_session_timeout = $nginx::ssl_session_timeout |
128 | | - $ssl_session_tickets = $nginx::ssl_session_tickets |
129 | | - $ssl_session_ticket_key = $nginx::ssl_session_ticket_key |
130 | | - $ssl_stapling = $nginx::ssl_stapling |
131 | | - $ssl_stapling_file = $nginx::ssl_stapling_file |
132 | | - $ssl_stapling_responder = $nginx::ssl_stapling_responder |
133 | | - $ssl_stapling_verify = $nginx::ssl_stapling_verify |
134 | | - $ssl_trusted_certificate = $nginx::ssl_trusted_certificate |
135 | | - $ssl_password_file = $nginx::ssl_password_file |
136 | | - $ssl_prefer_server_ciphers = $nginx::ssl_prefer_server_ciphers |
137 | | - $ssl_protocols = $nginx::ssl_protocols |
138 | | - $ssl_verify_depth = $nginx::ssl_verify_depth |
139 | | - $types_hash_bucket_size = $nginx::types_hash_bucket_size |
140 | | - $types_hash_max_size = $nginx::types_hash_max_size |
141 | | - $worker_connections = $nginx::worker_connections |
142 | | - $worker_processes = $nginx::worker_processes |
143 | | - $worker_rlimit_nofile = $nginx::worker_rlimit_nofile |
144 | | - $pcre_jit = $nginx::pcre_jit |
145 | | - $include_modules_enabled = $nginx::include_modules_enabled |
146 | | - $variables_hash_bucket_size = $nginx::variables_hash_bucket_size |
147 | | - $variables_hash_max_size = $nginx::variables_hash_max_size |
| 105 | + $proxy_headers_hash_max_size = $nginx::proxy_headers_hash_max_size |
| 106 | + $proxy_http_version = $nginx::proxy_http_version |
| 107 | + $proxy_max_temp_file_size = $nginx::proxy_max_temp_file_size |
| 108 | + $proxy_read_timeout = $nginx::proxy_read_timeout |
| 109 | + $proxy_redirect = $nginx::proxy_redirect |
| 110 | + $proxy_send_timeout = $nginx::proxy_send_timeout |
| 111 | + $proxy_set_header = $nginx::proxy_set_header |
| 112 | + $proxy_hide_header = $nginx::proxy_hide_header |
| 113 | + $proxy_pass_header = $nginx::proxy_pass_header |
| 114 | + $real_ip_header = $nginx::real_ip_header |
| 115 | + $real_ip_recursive = $nginx::real_ip_recursive |
| 116 | + $set_real_ip_from = $nginx::set_real_ip_from |
| 117 | + $sendfile = $nginx::sendfile |
| 118 | + $server_tokens = $nginx::server_tokens |
| 119 | + $spdy = $nginx::spdy |
| 120 | + $http2 = $nginx::http2 |
| 121 | + $ssl_buffer_size = $nginx::ssl_buffer_size |
| 122 | + $ssl_ciphers = $nginx::ssl_ciphers |
| 123 | + $ssl_crl = $nginx::ssl_crl |
| 124 | + $ssl_dhparam = $nginx::ssl_dhparam |
| 125 | + $ssl_ecdh_curve = $nginx::ssl_ecdh_curve |
| 126 | + $ssl_session_cache = $nginx::ssl_session_cache |
| 127 | + $ssl_session_timeout = $nginx::ssl_session_timeout |
| 128 | + $ssl_session_tickets = $nginx::ssl_session_tickets |
| 129 | + $ssl_session_ticket_key = $nginx::ssl_session_ticket_key |
| 130 | + $ssl_stapling = $nginx::ssl_stapling |
| 131 | + $ssl_stapling_file = $nginx::ssl_stapling_file |
| 132 | + $ssl_stapling_responder = $nginx::ssl_stapling_responder |
| 133 | + $ssl_stapling_verify = $nginx::ssl_stapling_verify |
| 134 | + $ssl_trusted_certificate = $nginx::ssl_trusted_certificate |
| 135 | + $ssl_password_file = $nginx::ssl_password_file |
| 136 | + $ssl_prefer_server_ciphers = $nginx::ssl_prefer_server_ciphers |
| 137 | + $ssl_protocols = $nginx::ssl_protocols |
| 138 | + $ssl_verify_depth = $nginx::ssl_verify_depth |
| 139 | + $types_hash_bucket_size = $nginx::types_hash_bucket_size |
| 140 | + $types_hash_max_size = $nginx::types_hash_max_size |
| 141 | + $worker_connections = $nginx::worker_connections |
| 142 | + $worker_processes = $nginx::worker_processes |
| 143 | + $worker_rlimit_nofile = $nginx::worker_rlimit_nofile |
| 144 | + $pcre_jit = $nginx::pcre_jit |
| 145 | + $include_modules_enabled = $nginx::include_modules_enabled |
| 146 | + $variables_hash_bucket_size = $nginx::variables_hash_bucket_size |
| 147 | + $variables_hash_max_size = $nginx::variables_hash_max_size |
148 | 148 |
|
149 | 149 | # Non-configurable settings |
150 | | - $conf_template = 'nginx/conf.d/nginx.conf.erb' |
151 | | - $mime_template = 'nginx/conf.d/mime.types.epp' |
152 | | - $proxy_conf_template = undef |
| 150 | + $conf_template = 'nginx/conf.d/nginx.conf.erb' |
| 151 | + $mime_template = 'nginx/conf.d/mime.types.epp' |
| 152 | + $proxy_conf_template = undef |
153 | 153 |
|
154 | 154 | File { |
155 | 155 | owner => $global_owner, |
|
0 commit comments