summaryrefslogtreecommitdiff
path: root/roles/nginx/vhost/defaults
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2021-05-13 04:20:44 +0200
committerChristian Pointner <equinox@spreadspace.org>2021-05-13 04:20:44 +0200
commit0410643732195626e8be8bc1b2c6fbc23b3b3cc3 (patch)
tree571a4fcdcdac29801091a1dd0d50b4248a178cf0 /roles/nginx/vhost/defaults
parentinstall binwalk to ch-equinox-* (diff)
make nginx vhost templates more generic
Diffstat (limited to 'roles/nginx/vhost/defaults')
-rw-r--r--roles/nginx/vhost/defaults/main.yml24
1 files changed, 15 insertions, 9 deletions
diff --git a/roles/nginx/vhost/defaults/main.yml b/roles/nginx/vhost/defaults/main.yml
index b5de1fad..233015be 100644
--- a/roles/nginx/vhost/defaults/main.yml
+++ b/roles/nginx/vhost/defaults/main.yml
@@ -7,15 +7,21 @@
# 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
+# extra_directives: |-
+# add_header X-Example-Header "foo";
+# locations:
+# '/':
+# proxy_pass: http://127.0.0.1:8080
+# proxy_redirect:
+# - redirect: "http://$host/"
+# replacement: "https://$host/"
+# - redirect: "http://$host:8080/"
+# replacement: "https://$host/"
+# extra_directives: |-
+# add_header X-Example-Header "foo";
+# proxy_ssl:
+# verify: on
+# trusted_certificate: /path/to/ca.pem
# nginx_vhost:
# name: other-example