Add server configuration playbook

This commit is contained in:
2017-01-21 16:05:53 +03:00
parent b7eeee4085
commit 72ccc89765
5 changed files with 42 additions and 26 deletions

View File

@ -5,8 +5,10 @@ server {
location / {
root {{ nginx_conf_root }};
index index.html;
try_files $uri /index.html;
try_files $uri $uri/ =404;
}
{% if not nginx_conf_sendfile|default(true) %}
sendfile off;
{% endif %}
}