Saltstack Official Nginx Formula
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

11 лет назад
11 лет назад
11 лет назад
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. nginx:
  2. install_from_source: True
  3. use_upstart: True
  4. with_luajit: False
  5. with_openresty: True
  6. modules:
  7. headers-more:
  8. source: http://github.com/agentzh/headers-more-nginx-module/tarball/v0.21
  9. source_hash: sha1=dbf914cbf3f7b6cb7e033fa7b7c49e2f8879113b
  10. # ========
  11. # nginx.ng
  12. # ========
  13. nginx:
  14. # These are usually set by grains in map.jinja
  15. lookup:
  16. package: nginx-custom
  17. service: nginx
  18. webuser: www-data
  19. conf_file: /etc/nginx/nginx.conf
  20. vhost_available: /etc/nginx/sites-available
  21. vhost_enabled: /etc/nginx/sites-enabled
  22. vhost_use_symlink: True
  23. # Source compilation is not currently a part of nginx.ng
  24. from_source: False
  25. package:
  26. opts: {} # this partially exposes parameters of pkg.installed
  27. service:
  28. enable: True # Whether or not the service will be enabled/running or dead
  29. opts: {} # this partially exposes parameters of service.running / service.dead
  30. server:
  31. opts: {} # this partially exposes file.managed parameters as they relate to the main nginx.conf file
  32. # nginx.conf (main server) declarations
  33. # dictionaries map to blocks {} and lists cause the same declaration to repeat with different values
  34. config:
  35. worker_processes: 4
  36. pid: /run/nginx.pid
  37. events:
  38. worker_connections: 768
  39. http:
  40. sendfile: on
  41. include:
  42. - /etc/nginx/mime.types
  43. - /etc/nginx/conf.d/*.conf
  44. vhosts:
  45. disabled_postfix: .disabled # a postfix appended to files when doing non-symlink disabling
  46. symlink_opts: {} # partially exposes file.symlink params when symlinking enabled sites
  47. rename_opts: {} # partially exposes file.rename params when not symlinking disabled/enabled sites
  48. managed_opts: {} # partially exposes file.managed params for managed vhost files
  49. dir_opts: {} # partially exposes file.directory params for site available/enabled dirs
  50. # vhost declarations
  51. # vhosts will default to being placed in vhost_available
  52. managed:
  53. mysite: # relative pathname of the vhost file
  54. # may be True, False, or None where True is enabled, False, disabled, and None indicates no action
  55. dir: /tmp # an alternate directory (not sites-available) where this vhost may be found
  56. disabled_name: mysite.aint_on # an alternative disabled name to be use when not symlinking
  57. enabled: True
  58. config: [] # May be a list or None, if None, no vhost file will be managed/templated