From 0410643732195626e8be8bc1b2c6fbc23b3b3cc3 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 13 May 2021 04:20:44 +0200 Subject: make nginx vhost templates more generic --- roles/nginx/vhost/defaults/main.yml | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) (limited to 'roles/nginx/vhost/defaults') 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 -- cgit v1.2.3