aboutsummaryrefslogtreecommitdiff
path: root/defaults/main.yml
blob: f7bc1b7502d73ed623cea6264639348208c75e62 (plain) (blame)
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
42
43
44
45
46
47
48
49
50
nginx_worker_processes: 1
nginx_worker_connections: 1024

# These need to be strings to be parsed properly
nginx_conf_dir_mode: '0770'
nginx_conf_file_mode: '0640'

nginx_conf_owner: root
nginx_conf_group: adm

# RFC 1918 addresses are already included. Inserted directly into
# nginx configuration with an `include`
nginx_acl_block: ""

nginx_conf_dir: "/etc/nginx"

nginx_acme_challenge_block: |
  location /.well-known/acme-challenge {
    # This works for acmetool. If using letsencrypt change 'alias' to 'root'
    alias /var/run/acme/acme-challenge/;
    # alias /var/lib/acme-challenge;
  }


# The default server listens on port 80 normally, you can change that if you
# like
nginx_default_listen: |
  listen	   80;
  listen	   [::]:80;


nginx_robots:
  - name: allow
    robots_txt: |
      User-agent: CuteStat
      Disallow: /

      User-agent: *
      Allow: /
  - name: disallow
    robots_txt: |
      User-agent: CuteStat
      Disallow: /

      User-agent: *
      Disallow: /

# If "True" it will template out {{ansible_hostname}}/nginx/nginx.conf instead
# of nginx/nginx.conf
nginx_custom_template: False