Sha256: 094883aa221e2c1ec23b83c697ddbea2fc3b298d4da5b0d6d14eb31440b99e26
Contents?: true
Size: 1.33 KB
Versions: 6
Compression:
Stored size: 1.33 KB
Contents
upstream backend_<%= fetch(:application) %> { server unix:/tmp/rainbows.<%= fetch(:application) %>.sock fail_timeout=0; } server { listen 80; server_name <%= fetch(:server_name) %>; root <%= current_path %>/public; location /nginx_status { stub_status on; access_log off; allow 127.0.0.1; deny all; } 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) %> { # For CORS if ( $request_method = OPTIONS ) { add_header Access-Control-Allow-Origin "*"; add_header Access-Control-Allow-Methods "GET, OPTIONS"; add_header Access-Control-Allow-Headers "Authorization"; add_header Access-Control-Allow-Credentials "true"; add_header Content-Length 0; add_header Content-Type text/plain; return 200; } proxy_redirect off; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $http_host; proxy_read_timeout <%= fetch(:nginx_proxy_read_timeout) %>; 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
6 entries across 6 versions & 1 rubygems