Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Patrick Gibson
committed
Apr 30, 2011
1 parent
af3e934
commit bf48894
Showing
7 changed files
with
79 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,4 @@ | |||
# point these to your own environment's passenger and ruby | |||
passenger_root /Library/Ruby/Gems/1.8/gems/passenger-3.0.7; | |||
passenger_ruby /Users/patrick/.rvm/bin/ree-1.8.7-2011.03; | |||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,4 @@ | |||
upstream aapp | |||
{ | |||
server localhost:3000 max_fails=3 fail_timeout=2s; | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,4 @@ | |||
upstream wingate-proxy | |||
{ | |||
server localhost:4567 max_fails=3 fail_timeout=2s; | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,38 @@ | |||
server | |||
{ | |||
listen 127.0.0.1:8080; | |||
server_name localhost.agencies.adobe.com; | |||
|
|||
root /usr/local/sites/adobe-agency-partner-portal/public; | |||
index index.php index.html index.htm; | |||
|
|||
if (!-e $request_filename) | |||
{ | |||
rewrite ^(.*)-([0-9]+)\.(css|js|png|swf|xml)$ $1.$3 break; | |||
} | |||
|
|||
location ^~ / | |||
{ | |||
proxy_pass_request_headers on; | |||
proxy_ignore_headers Expires Cache-Control; | |||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |||
proxy_set_header X_FORWARDED_PROTO https; | |||
proxy_set_header Host $http_host; proxy_pass_header ATTENDEASE_PROXY_ACCESS_TOKEN; | |||
proxy_pass_header jr_token; | |||
proxy_pass_header HTTP_X_JR_TOKEN; proxy_pass_header X_JR_TOKEN; | |||
proxy_pass_header Jr_token; | |||
proxy_pass_header Set-Cookie; | |||
proxy_pass http://aapp; | |||
|
|||
gzip on; | |||
gzip_min_length 1000; | |||
gzip_proxied expired no-cache no-store private auth; | |||
gzip_types text/plain text/css application/xml application/json application/javascript; | |||
gzip_disable "MSIE [1-6]\."; | |||
|
|||
if (-f $request_filename) | |||
{ | |||
break; | |||
} | |||
} | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters