Sha256: 08527935e1451b7d2f3fcb3b7ba654d5a12777d85e8648690985ff2421eeeabb

Contents?: true

Size: 549 Bytes

Versions: 2

Compression:

Stored size: 549 Bytes

Contents

upstream {{ app_name }} { 
  server {{ domain }}:3000;
  server unix:///var/www/{{ app_name }}/shared/tmp/sockets/puma.sock; 
} 
server { 
  listen 80;
  server_name {{ domain }};
  root /var/www/{{ app_name }}/current/public;

  location / { 
    proxy_set_header Host $host; 
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 
    proxy_pass http://{{ app_name }};
  } 

  location ~* ^/assets/ { 
    expires 1y; 
    add_header Cache-Control public; 

    add_header Last-Modified ""; 
    add_header ETag ""; 
    break; 
  } 
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails-ahoy-0.0.2 lib/generators/ahoy/templates/ansible/playbooks/roles/nginx/templates/platform.conf
rails-ahoy-0.0.1 lib/generators/ahoy/templates/ansible/playbooks/roles/nginx/templates/platform.conf