Skip to content

Commit

Permalink
Leverage the upstream name in a few other defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
nickjj committed Jun 30, 2014
1 parent dbe291f commit f2c8ada
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ nginx_base_redirect_to_www: false
# What type of backend are you using and what is its location?
nginx_upstream_name: testproject
nginx_upstream_server: unix:///srv/testproject/tmp/puma.sock
nginx_upstream_server: unix:///srv/{{ nginx_upstream_name }}/tmp/puma.sock
nginx_backend_name: puma
# Where are your public files stored?
nginx_root_path: /srv/testproject/public
nginx_root_path: /srv/{{ nginx_upstream_name }}/public
# Should nginx serve static assets?
nginx_assets_enabled: true
Expand Down Expand Up @@ -141,7 +141,7 @@ Let's say you want to edit a few defaults, you can do this by opening or creatin

```
---
nginx_root_path: /srv/awesomeapp/public
nginx_upstream_name: awesomeapp
nginx_base_redirect_to_www: true
```

Expand Down
4 changes: 2 additions & 2 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ nginx_server_name: "{{ nginx_base_domain }}"
nginx_base_redirect_to_www: false

nginx_upstream_name: testproject
nginx_upstream_server: unix:///srv/testproject/tmp/puma.sock
nginx_upstream_server: unix:///srv/{{ nginx_upstream_name }}/tmp/puma.sock
nginx_backend_name: puma

nginx_root_path: /srv/testproject/public
nginx_root_path: /srv/{{ nginx_upstream_name }}/public
nginx_assets_enabled: true
nginx_assets_regex: ~ ^/(system|assets)/

Expand Down

0 comments on commit f2c8ada

Please sign in to comment.