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.

32 lines
720B

  1. # Simple pillar setup
  2. # - snippet letsencrypt
  3. # - remove 'default' site
  4. # - create 'mysite' site
  5. nginx:
  6. ng:
  7. snippets:
  8. letsencrypt:
  9. - location ^~ /.well-known/acme-challenge/:
  10. - proxy_pass: http://localhost:9999
  11. servers:
  12. managed:
  13. default:
  14. deleted: True
  15. enabled: False
  16. config: {}
  17. mysite:
  18. enabled: True
  19. config:
  20. - server:
  21. - server_name: localhost
  22. - listen:
  23. - '80 default_server'
  24. - index: 'index.html index.htm'
  25. - location ~ .htm:
  26. - try_files: '$uri $uri/ =404'
  27. - include: 'snippets/letsencrypt.conf'