pylabs.nginx
nginx
Installer le package Nginx
Variables du rôle
nginx_cache_path: CHEMIN_DE_CACHE (par défaut : /var/cache/nginx)
nginx_proxy_cache_enabled: ACTIVATION_CACHE_PROXY (par défaut : false)
nginx_proxy_cache_path: CHEMIN_CACHE_PROXY (par défaut : "{{ nginx_cache_path }} levels=1:2 keys_zone=proxy_cache:10m inactive=1d max_size=10g;")
nginx_proxy_cache_key: CLE_CACHE_PROXY (par défaut : "$scheme$proxy_host$uri$is_args$args;")
nginx_uwsgi_cache_enabled: ACTIVATION_CACHE_UWSGI (par défaut : false)
nginx_uwsgi_cache_path: CHEMIN_CACHE_UWSGI (par défaut : "{{ nginx_cache_path }} levels=1:2 keys_zone=uwsgi_cache:10m inactive=1d max_size=10g;")
nginx_uwsgi_cache_key: CLE_CACHE_UWSGI (par défaut : "$scheme$proxy_host$uri$is_args$args;")
Dépendances
- pylabs.sysbase
Exemple de Playbook
- hosts: serveurs
vars:
nginx_cache_path: "/var/cache/nginx"
nginx_uwsgi_cache_enabled: oui
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:
- role: pylabs.nginx
Licence
MIT
Informations sur l'auteur
William Wu