server { listen {{nginx_port}}; server_name {{server_name}}; root {{static_root}}; location / { add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Methods *; add_header Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization'; autoindex on; index index.html index.htm; try_files $uri $uri/ /index.html; } {{proxy_blocks}} }