pylabs.nginx
nginx
Instalacja pakietu Nginx
Zmienne roli
nginx_cache_path: SCIEŻKA_CACHE (domyślnie: /var/cache/nginx)
nginx_proxy_cache_enabled: WŁĄCZ_PROXY_CACHE (domyślnie: false)
nginx_proxy_cache_path: SCIEŻKA_PROXY_CACHE (domyślnie: "{{ nginx_cache_path }} levels=1:2 keys_zone=proxy_cache:10m inactive=1d max_size=10g;")
nginx_proxy_cache_key: KLUCZ_PROXY_CACHE (domyślnie: "$scheme$proxy_host$uri$is_args$args;")
nginx_uwsgi_cache_enabled: WŁĄCZ_UWSGI_CACHE (domyślnie: false)
nginx_uwsgi_cache_path: SCIEŻKA_UWSGI_CACHE (domyślnie: "{{ nginx_cache_path }} levels=1:2 keys_zone=uwsgi_cache:10m inactive=1d max_size=10g;")
nginx_uwsgi_cache_key: KLUCZ_UWSGI_CACHE (domyślnie: "$scheme$proxy_host$uri$is_args$args;")
Zależności
- pylabs.sysbase
Przykład Playbooka
- hosts: serwery
vars:
nginx_cache_path: "/var/cache/nginx"
nginx_uwsgi_cache_enabled: tak
nginx_uwsgi_cache_path: "{{ nginx_cache_path }} levels=1:2 keys_zone=uwsgi_cache:10m inactive=1d max_size=10g;"
nginx_uwsgi_cache_key: "$scheme$proxy_host$uri$is_args$args;"
roles:
- rola: pylabs.nginx
Licencja
MIT
Informacje o autorze
William Wu
Zainstaluj
ansible-galaxy install pylabs.nginx
Licencja
Unknown
Pobrania
482
Właściciel