Sha256: 10111d6738dfe66c54327faadefdfbc31bf8b667e3742a89d5de4346b5f986f1

Contents?: true

Size: 612 Bytes

Versions: 20

Compression:

Stored size: 612 Bytes

Contents

upstream <%= app_name %> {
  server unix:/tmp/<%= app_name %>.sock;
}

server {
  listen 80;
  server_name <%= @server_name %>;
  
  root <%= rails_root %>/public;
  try_files $uri/index.html $uri @app;
  
  location @app {
    proxy_pass http://<%= app_name %>;
    proxy_set_header Host $http_host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  }

<% if @rails_env == 'production' -%>
  location ~ ^/(assets)/ {
    gzip_vary on;
    gzip_static on;
    expires 1y;
    add_header Cache-Control public;
    add_header ETag "";
  }
<% end -%>
}

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
daddy-0.5.14 lib/tasks/nginx/app.conf.erb
daddy-0.5.13 lib/tasks/nginx/app.conf.erb
daddy-0.5.12 lib/tasks/nginx/app.conf.erb
daddy-0.5.11 lib/tasks/nginx/app.conf.erb
daddy-0.5.10 lib/tasks/nginx/app.conf.erb
daddy-0.5.9 lib/tasks/nginx/app.conf.erb
daddy-0.5.8 lib/tasks/nginx/app.conf.erb
daddy-0.5.7 lib/tasks/nginx/app.conf.erb
daddy-0.5.6 lib/tasks/nginx/app.conf.erb
daddy-0.5.5 lib/tasks/nginx/app.conf.erb
daddy-0.5.4 lib/tasks/nginx/app.conf.erb
daddy-0.5.3 lib/tasks/nginx/app.conf.erb
daddy-0.5.2 lib/tasks/nginx/app.conf.erb
daddy-0.5.1 lib/tasks/nginx/app.conf.erb
daddy-0.5.0 lib/tasks/nginx/app.conf.erb
daddy-0.4.10 lib/tasks/nginx/app.conf.erb
daddy-0.4.9 lib/tasks/nginx/app.conf.erb
daddy-0.4.8 lib/tasks/nginx/app.conf.erb
daddy-0.4.7 lib/tasks/nginx/app.conf.erb
daddy-0.4.6 lib/tasks/nginx/app.conf.erb