<commit_before># This file is managed by unifiedpush-ctl. Manual changes will be
# erased! To change the contents below, edit /etc/unifiedpush/unifiedpush.rb
# and run `sudo unifiedpush-ctl reconfigure`.

user <%= node['unifiedpush']['web-server']['username'] %> <%= node['unifiedpush']['web-server']['group']%>;
worker_processes <%= @worker_processes %>;
error_log stderr;
pid nginx.pid;

daemon off;

events {
  worker_connections <%= @worker_connections %>;
}

<%= @custom_nginx_config %>

http {
  sendfile <%= @sendfile %>;
  tcp_nopush <%= @tcp_nopush %>;
  tcp_nodelay <%= @tcp_nodelay %>;

  keepalive_timeout <%= @keepalive_timeout %>;

  gzip <%= @gzip %>;
  gzip_http_version <%= @gzip_http_version %>;
  gzip_comp_level <%= @gzip_comp_level %>;
  gzip_proxied <%= @gzip_proxied %>;
  gzip_types <%= @gzip_types.join(' ') %>;

  ## proxy to any other HTTP server can buffer upto 512K (32*16) of data
  ## proxy_buffer_size - Used only for HEAD data
  proxy_buffer_size <%= @proxy_buffer_size %>;
  proxy_buffers <%= @proxy_buffers %>;
  proxy_busy_buffers_size <%= @proxy_busy_buffers_size %>;
 
  # Controls the maximum length of a virtual host entry (ie the length of the domain name).
  server_names_hash_bucket_size <%= @server_names_hash_bucket_size %>; 

  include /opt/unifiedpush/embedded/conf/mime.types;

  <%= @custom_http_config %>

  <% if @unifiedpush_http_config %>
  include <%= @unifiedpush_http_config %>;
  <% end %>

  include <%= @unifiedpush_http_configd %>/*.conf;<commit_msg>CAPP-10589 related, hide server info<commit_after># This file is managed by unifiedpush-ctl. Manual changes will be
# erased! To change the contents below, edit /etc/unifiedpush/unifiedpush.rb
# and run `sudo unifiedpush-ctl reconfigure`.

user <%= node['unifiedpush']['web-server']['username'] %> <%= node['unifiedpush']['web-server']['group']%>;
worker_processes <%= @worker_processes %>;
error_log stderr;
pid nginx.pid;

daemon off;

events {
  worker_connections <%= @worker_connections %>;
}

<%= @custom_nginx_config %>

http {
  sendfile <%= @sendfile %>;
  tcp_nopush <%= @tcp_nopush %>;
  tcp_nodelay <%= @tcp_nodelay %>;

  keepalive_timeout <%= @keepalive_timeout %>;
  
  ## Don't show the nginx version number, a security best practice
  server_tokens off;

  gzip <%= @gzip %>;
  gzip_http_version <%= @gzip_http_version %>;
  gzip_comp_level <%= @gzip_comp_level %>;
  gzip_proxied <%= @gzip_proxied %>;
  gzip_types <%= @gzip_types.join(' ') %>;

  ## proxy to any other HTTP server can buffer upto 512K (32*16) of data
  ## proxy_buffer_size - Used only for HEAD data
  proxy_buffer_size <%= @proxy_buffer_size %>;
  proxy_buffers <%= @proxy_buffers %>;
  proxy_busy_buffers_size <%= @proxy_busy_buffers_size %>;
 
  # Controls the maximum length of a virtual host entry (ie the length of the domain name).
  server_names_hash_bucket_size <%= @server_names_hash_bucket_size %>; 

  include /opt/unifiedpush/embedded/conf/mime.types;

  <%= @custom_http_config %>

  <% if @unifiedpush_http_config %>
  include <%= @unifiedpush_http_config %>;
  <% end %>

  include <%= @unifiedpush_http_configd %>/*.conf;
{'fraction_non_alphanumeric': 0.14837268666241224, 'fraction_numerical': 0.006062539885130823, 'mean_word_length': 5.005747126436781, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 49, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6024031', 'n_tokens_mistral': 1214, 'n_tokens_neox': 1053, 'n_words': 239}