summaryrefslogtreecommitdiff
path: root/roles/nginx/vhost/defaults/main.yml
blob: 18c9a0b98ba9dac6e8d1bc3f96b90de542e14899 (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
---
# nginx_vhost:
#   default: yes
#   name: example
#   template: generic-proxy-no-buffering-with-acme
#   acme: yes
#   hostnames:
#   - example.com
#   - www.example.com
#   proxy_pass: http://127.0.0.1:8080
#   proxy_redirect:
#   - redirect: "http://$host/"
#     replacement: "https://$host/"
#   - redirect: "http://$host:8080/"
#     replacement: "https://$host/"
#   proxy_ssl:
#     verify: on
#     trusted_certificate: /path/to/ca.pem

# nginx_vhost:
#   name: other-example
#   content: "<<< content of vhost >>>"

# nginx_vhost:
#   name: static
#   template: static-files-with-acme
#   acme: yes
#   hostnames:
#   - static.example.com
#   root: /srv/www/static
#   index: index.html
#   autoindex:
#     format: json