aboutsummaryrefslogtreecommitdiff
path: root/defaults/main.yml
blob: 19ac5c8efed6c746c9916c6cc78f7e09ee15cf52 (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
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;


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