voce/nginx/voce.dev.luketic.conf

23 lines
670 B
Plaintext
Raw Normal View History

2015-09-24 18:42:56 +02:00
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;
}
}