Sha256: 14a4cb7598798990d3742659a6d8b84b6c6103ac4c6865eb881e07dcdc136635

Contents?: true

Size: 617 Bytes

Versions: 19

Compression:

Stored size: 617 Bytes

Contents

upstream <%= fetch :application%> {
  server     localhost:3000;
}


server {
  server_name <%= host.hostname %>;
  root /var/www/<%= fetch :application%>/current/public;

  location @<%= fetch :application%> {
    proxy_pass          http://<%= fetch :application%>;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_read_timeout  90;
  }
  location / {
    try_files  $uri  @<%= fetch :application%> ;
    index  index.html index.htm index.php;
  }
  location /status {
    stub_status on;
    allow all;
  }

}

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
prun-ops-0.3.0 lib/capistrano/config/templates/vhost.conf.erb
prun-ops-0.2.18 lib/capistrano/config/templates/vhost.conf.erb
prun-ops-0.2.17 lib/capistrano/config/templates/vhost.conf.erb
prun-ops-0.2.16 lib/capistrano/config/templates/vhost.conf.erb
prun-ops-0.2.15 lib/capistrano/config/templates/vhost.conf.erb
prun-ops-0.2.14 lib/capistrano/config/templates/vhost.conf.erb
prun-ops-0.2.13 lib/capistrano/config/templates/vhost.conf.erb
prun-ops-0.2.12 lib/capistrano/config/templates/vhost.conf.erb
prun-ops-0.2.11 lib/capistrano/config/templates/vhost.conf.erb
prun-ops-0.2.10 lib/capistrano/config/templates/vhost.conf.erb
prun-ops-0.2.9 lib/capistrano/config/templates/vhost.conf.erb
prun-ops-0.2.8 lib/capistrano/config/templates/vhost.conf.erb
prun-ops-0.2.7 lib/capistrano/config/templates/vhost.conf.erb
prun-ops-0.2.6 lib/capistrano/config/templates/vhost.conf.erb
prun-ops-0.2.4 lib/capistrano/config/templates/vhost.conf.erb
prun-ops-0.2.3 lib/capistrano/config/templates/vhost.conf.erb
prun-ops-0.2.2 lib/capistrano/config/templates/vhost.conf.erb
prun-ops-0.2.1 lib/capistrano/config/templates/vhost.conf.erb
prun-ops-0.2.0 lib/capistrano/config/templates/vhost.conf.erb