Configure socket to use with nginx