This commit is contained in:
2015-09-24 18:42:56 +02:00
commit dd0e8f6bf4
11 changed files with 486 additions and 0 deletions

View File

@ -0,0 +1,22 @@
server {
listen 80;
server_name voce.dev.luketic;
error_log /var/log/nginx/voce_error.log;
# pass the request to the node.js server with the correct headers and much more can be added, see nginx config options
location /api/v1/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_pass http://127.0.0.1:8080/;
proxy_redirect off;
}
location / {
root /home/darko/go/src/github.com/dalu/voce/static/;
try_files $uri $uri/ /index.html =404;
}
}