Skip to content
This repository has been archived by the owner on Mar 16, 2019. It is now read-only.

Commit

Permalink
Update nginx conf to proxy for the api
Browse files Browse the repository at this point in the history
  • Loading branch information
jamii committed May 11, 2012
1 parent 0fc6cfa commit 1ab0d3d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions nginx.conf
Expand Up @@ -4,8 +4,12 @@ server {
access_log on;
error_log on;

location /springer-recommendations {
root /mnt/var;
autoindex on;
location /api {
proxy_pass http://127.0.0.1:8000/;
proxy_redirect off;

proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}

0 comments on commit 1ab0d3d

Please sign in to comment.