Sha256: 285d9528b19f9e5590e4e2ed7232021fb19cebfb01ef89093206b0879fad63a9

Contents?: true

Size: 1.07 KB

Versions: 2

Compression:

Stored size: 1.07 KB

Contents

# /etc/nginx/nginx.conf
# worker_processes 4; # one per proc "grep processor /proc/cpuinfo | wc -l"
# worker_connections 1024;

server {
  listen 80 default_server;
  # server_name .novi-informator.hr;

  root $ROOT/public;
  error_log $ROOT/log/nginx-error.log;

  passenger_enabled on;
  passenger_friendly_error_pages on;

  # (1024 * TOTAL_RAM * 0.75) / MB_PER_PROECESS
  # passenger_max_pool_size 163;
  # passenger_min_instances 163;

  client_body_timeout 12;
  client_body_in_file_only clean;
  client_body_buffer_size 32K;     # form POST
  client_header_timeout 12;
  client_max_body_size 50M;
  keepalive_timeout 20;
  send_timeout 10;
  sendfile on;

  gzip             on;
  gzip_comp_level  2;
  gzip_min_length  1000;
  gzip_proxied     expired no-cache no-store private auth;
  gzip_types       text/plain application/x-javascript text/xml text/css application/xml;

  access_log off;

  location = /favicon.ico {
      log_not_found off;
      access_log    off;
  }

  location ^~ /assets/ {
      gzip_static on;
      expires max;
      add_header Cache-Control public;
  }
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lux-fw-0.2.3 ./bin/txt/nginx.conf
lux-fw-0.2.1 ./bin/txt/nginx.conf