Sha256: 923f3435167ce1e3bb4cdcd379ebb004c6cd8f9ff2913b3bd1e5bbf2198ef95f
Contents?: true
Size: 1.64 KB
Versions: 3
Compression:
Stored size: 1.64 KB
Contents
upstream backend_<%= fetch(:application) %> { server unix:/tmp/unicorn.<%= fetch(:application) %>.sock fail_timeout=0; } server { server_name <%= fetch(:server_name) %>; listen 80 default deferred; if ($http_x_forwarded_proto = "http") { return 301 https://$host$request_uri; } root <%= current_path %>/public; location ^~ /assets/ { gzip_static on; expires max; add_header Cache-Control public; } try_files $uri/index.html $uri @backend_<%= fetch(:application) %>; location @backend_<%= fetch(:application) %> { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_redirect off; proxy_pass http://backend_<%= fetch(:application) %>; } error_page 500 502 503 504 /500.html; client_max_body_size 4G; keepalive_timeout 10; } server { server_name <%= fetch(:server_name) %>; listen 443; ssl on; ssl_certificate /etc/ssl/certs/<%= fetch(:server_name) %>.crt; ssl_certificate_key /etc/ssl/private/server.key; root <%= current_path %>/public; location ^~ /assets/ { gzip_static on; expires max; add_header Cache-Control public; } try_files $uri/index.html $uri @unicorn; location @backend_<%= fetch(:application) %> { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_redirect off; proxy_pass http://backend_<%= fetch(:application) %>; } error_page 500 502 503 504 /500.html; client_max_body_size 4G; keepalive_timeout 10; }
Version data entries
3 entries across 3 versions & 1 rubygems