Saltstack Official Nginx Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
467B

  1. # nginx.ng.config
  2. #
  3. # Manages the main nginx server configuration file.
  4. {% from 'nginx/ng/map.jinja' import nginx, sls_block with context %}
  5. {% if nginx.install_from_source %}
  6. /var/log/nginx:
  7. file.directory
  8. {% endif %}
  9. nginx_config:
  10. file.managed:
  11. {{ sls_block(nginx.server.opts) }}
  12. - name: {{ nginx.lookup.conf_file }}
  13. - source: salt://nginx/ng/files/nginx.conf
  14. - template: jinja
  15. - context:
  16. config: {{ nginx.server.config|json() }}