Sha256: 3bce5b52e8349d3f210128aa35bca096356339157f4fd48feeb6b244e8cb0ef1

Contents?: true

Size: 487 Bytes

Versions: 7

Compression:

Stored size: 487 Bytes

Contents

upstream <%= ENV['APP_NAME'] %> {
  server unix:/tmp/<%= ENV['APP_NAME'] %>.sock;
}

server {
  listen 80;
  server_name localhost;
  
  root <%= ENV['RAILS_ROOT'] %>/public;
  try_files $uri/index.html $uri @app;
  
  location @app {
    proxy_pass http://<%= ENV['APP_NAME'] %>;
  }

<% if ENV['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

7 entries across 7 versions & 1 rubygems

Version Path
daddy-0.1.18 lib/tasks/nginx.app.conf.erb
daddy-0.1.17 lib/tasks/nginx.app.conf.erb
daddy-0.1.15 lib/tasks/nginx.app.conf.erb
daddy-0.1.14 lib/tasks/nginx.app.conf.erb
daddy-0.1.13 lib/tasks/nginx.app.conf.erb
daddy-0.1.12 lib/tasks/nginx.app.conf.erb
daddy-0.1.11 lib/tasks/nginx.app.conf.erb