Sha256: 26f17039fa576bdb5ae9ed0ae85b4802d4fbebf6b45abef583bbf6f8193a086d
Contents?: true
Size: 936 Bytes
Versions: 11
Compression:
Stored size: 936 Bytes
Contents
upstream unicorn { server unix:/tmp/unicorn.sock; } server { listen 80 default_server; server_name _; deny all; } server { listen 80; server_name localhost; root <%= ENV['RAILS_ROOT'] %>/public; try_files $uri/index.html $uri @app; location @app { proxy_pass http://unicorn; } <% if ENV['RAILS_ENV'] == 'production' %> location ~ ^/(assets)/ { gzip_vary on; gzip_static on; expires 1y; add_header Cache-Control public; add_header ETag ""; } <% end -%> <% if ENV['JENKINS'].to_s.downcase == 'true' %> location /jenkins/ { root /var/cache/jenkins/war; proxy_pass http://localhost:8081/jenkins/; 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; } <% end -%> <% if ENV['PUBLISH'].to_s.downcase == 'true' %> location /spec/ { root /var/lib/daddy; } <% end -%> }
Version data entries
11 entries across 11 versions & 1 rubygems