This repository has been archived by the owner on Feb 19, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update README, add example nginx config
- Loading branch information
Alex Lushpai
committed
Jul 18, 2013
1 parent
3a9e09b
commit d034146
Showing
2 changed files
with
42 additions
and
0 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,15 @@ | ||
upstream api { | ||
server 127.0.0.1:8088; | ||
} | ||
|
||
server { | ||
listen 127.0.0.1:80; | ||
server_name api.bzgen.dev; | ||
root /var/www/bzgen; | ||
location / { | ||
proxy_read_timeout 300; | ||
proxy_pass http://api; | ||
proxy_set_header Host $http_host; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
} | ||
} |