From 88f9ccc57964d8530dd23952f4ef3d85bab2438b Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 17 Aug 2022 20:05:00 +0200 Subject: nginx/vhost: combine templates to one generic version --- roles/nginx/vhost/defaults/main.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'roles/nginx/vhost/defaults') diff --git a/roles/nginx/vhost/defaults/main.yml b/roles/nginx/vhost/defaults/main.yml index 233015be..b80a5442 100644 --- a/roles/nginx/vhost/defaults/main.yml +++ b/roles/nginx/vhost/defaults/main.yml @@ -2,7 +2,7 @@ # nginx_vhost: # default: yes # name: example -# template: generic-proxy-no-buffering-with-acme +# template: generic # acme: yes # hostnames: # - example.com @@ -24,12 +24,8 @@ # trusted_certificate: /path/to/ca.pem # nginx_vhost: -# name: other-example -# content: "<<< content of vhost >>>" - -# nginx_vhost: -# name: static -# template: static-files-with-acme +# name: mixed-static-and-proxy +# template: generic # acme: yes # hostnames: # - static.example.com @@ -45,3 +41,9 @@ # add_header X-Example-Header "foo"; # '/subdir/': # alias: /srv/www/foo +# '/foo/': +# proxy_pass: http://127.0.0.1:1234 + +# nginx_vhost: +# name: other-example +# content: "<<< content of vhost >>>" -- cgit v1.2.3