SHOW:
|
|
- or go back to the newest paste.
| 1 | - | # default branch to serve |
| 1 | + | # default branch to serve |
| 2 | - | set $branch "master"; |
| 2 | + | set $branch "master"; |
| 3 | - | |
| 3 | + | |
| 4 | - | # Serve features on *.app.dev subdomain |
| 4 | + | # Serve features on *.app.dev subdomain |
| 5 | - | if ($host ~* ^([^.]+)\.app\.dev\.company\.com$) { |
| 5 | + | if ($host ~* ^([^.]+)\.app\.dev\.company\.com$) {
|
| 6 | - | set $branch $1; |
| 6 | + | set $branch $1; |
| 7 | - | } |
| 7 | + | } |
| 8 | - | |
| 8 | + | |
| 9 | - | # All branches are hosted from a subdirectory |
| 9 | + | # All branches are hosted from a subdirectory |
| 10 | root /var/www/branches/$branch; |