From 5281fd73def6c9b984a696c47859c4e80d787f22 Mon Sep 17 00:00:00 2001 From: Andrea Cimbalo Date: Sun, 27 Aug 2017 20:14:01 +0200 Subject: [PATCH] some example usage for nginx role --- roles/nginx/defaults/main.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/roles/nginx/defaults/main.yml b/roles/nginx/defaults/main.yml index 1b3fe79..5eb9a22 100644 --- a/roles/nginx/defaults/main.yml +++ b/roles/nginx/defaults/main.yml @@ -6,3 +6,33 @@ max_body_size: 8 server_fqdn: "{{ ansible_hostname }}.lilik.it" proxy_location_path: '' + +# Same example usages: +# +# Redirect trakt folder to a proxy on fqdn_domain, +# create a location file in /etc/nginx/locations/media.lilik.it/trakt.conf +# dependencies: +# - role: nginx +# is_proxy: true +# proxy_location_path: "trakt" +# remote_host: "http://localhost:5000" +# server_fqdn: "media.lilik.it" +# parent_role_path: "trakt" +# +# Serve a location based on role template 'kodi-repository.conf.nginx.j2' on fqdn_domain, +# create a location file in /etc/nginx/locations/media.lilik.it/kodi-repository.conf +# dependencies: +# - role: nginx +# config_name: "kodi-repository" +# server_fqdn: "{{ fqdn_domain }}" +# parent_role_path: "kodi-repository" +# +# Serve a location based on role template 'roundcube.conf.nginx.j2' on fqdn_domain, +# create a location file in /etc/nginx/locations/media.lilik.it/roundcube.conf, +# serve php file using php pfm +# dependencies: +# - role: nginx +# php: true +# config_name: "roundcube" +# server_fqdn: "webmail.lilik.it" +# parent_role_path: "roundcube"