add IPv6 config to nginx.conf in project template

was doing a deploy on a new linode (which supports IPv6) and discovered this problem. 
After trying some solutions, this was the only one that worked both for IPv4 and IPv6. 

tested with nginx 1.4.6