summaryrefslogtreecommitdiffstats
path: root/nginx/base.sls
blob: 587ac711d2b4fa6d987550339dd5fee858ece009 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
nginx:
  source:
    opts: {}
  service:
    enable: True
    opts: {}
  server:
    config:
      events:
        worker_connections: 1024
      http:
        sendfile: 'on'
        aio: 'on'
        directio: 4m
        keepalive_timeout: 65
        gzip: 'on'
        gzip_proxied: 'any'
        gzip_types: '*'
        gzip_vary: 'on'
        charset: utf-8
        charset_types: text/xml text/plain application/javascript application/rss+xml
        server_tokens: 'off'
        etag: 'on'
        ssi: 'on'

        include:
          - /etc/nginx/mime.types
          - /etc/nginx/conf.d/*.conf
          - /etc/nginx/sites-enabled/*

  servers:
    managed_opts:
      require_in:
        - file: nginx_server_available_dir
    symlink_opts:
      require_in:
        - file: nginx_server_enabled_dir
    dir_opts:
      clean: 'on'

# vim: ft=yaml et: