{%- set site = salt['pillar.get']('nginx:server:site:'+site_name) %} | |
{%- from "aptly/map.jinja" import server with context %} | |
server { | |
{%- include "nginx/files/_name.conf" %} | |
{%- include "nginx/files/_ssl.conf" %} | |
{%- include "nginx/files/_log.conf" %} | |
root {{ server.root_dir }}/public; | |
location / { | |
autoindex on; | |
} | |
} |