forked from jrconlin/moz_push
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First batch of updates
- Loading branch information
jrconlin
committed
Nov 2, 2011
1 parent
9470ed9
commit e06990c
Showing
7 changed files
with
60 additions
and
4 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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
location ^~ /s/ { | ||
allow all; | ||
alias /home/jconlin/src/moz_push/notifserver/static/; | ||
} | ||
|
||
|
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#Admin interface | ||
location /__admin__ { | ||
allow 10.0.0.0/8; | ||
deny all; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header Host $http_host; | ||
proxy_redirect off; | ||
proxy_pass http://localhost:8000; | ||
} | ||
|
||
# Main handler (for all other URLs) | ||
location / { | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header Host $http_host; | ||
proxy_redirect off; | ||
proxy_pass http://localhost:8000; | ||
} | ||
|
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
7c7 | ||
< error_log /var/logs/nginx/error.log info; | ||
--- | ||
> #error_log logs/error.log info; | ||
36c36 | ||
< listen 80 default; | ||
--- | ||
> listen 80; | ||
39,40d38 | ||
< include /etc/nginx/conf.d/*.conf; | ||
< | ||
45,48c43,46 | ||
< # location / { | ||
< # root html; | ||
< # index index.html index.htm; | ||
< # } | ||
--- | ||
> location / { | ||
> root html; | ||
> index index.html index.htm; | ||
> } |
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
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 | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#bin/gunicorn -w1 notifserver.run -t 3000 --log-file - --log-level info | ||
bin/paster serve etc/notifserver/production.ini | ||
bin/gunicorn -w1 notifserver.run -t 3000 --log-file - --log-level info | ||
#bin/paster serve etc/notifserver/production.ini |