pylabs.nginx

nginx

Nginx-Paket installieren

Rollenvariablen

nginx_cache_path: CACHE_PATH (Standard: /var/cache/nginx)
nginx_proxy_cache_enabled: ENABLE_PROXY_CACHE (Standard: false)
nginx_proxy_cache_path: PROXY_CACHE_PATH (Standard: "{{ nginx_cache_path }} levels=1:2 keys_zone=proxy_cache:10m inactive=1d max_size=10g;")
nginx_proxy_cache_key: PROXY_CACHE_KEY (Standard: "$scheme$proxy_host$uri$is_args$args;")
nginx_uwsgi_cache_enabled: ENABLE_UWSGI_CACHE (Standard: false)
nginx_uwsgi_cache_path: UWSGI_CACHE_PATH (Standard: "{{ nginx_cache_path }} levels=1:2 keys_zone=uwsgi_cache:10m inactive=1d max_size=10g;")
nginx_uwsgi_cache_key: UWSGI_CACHE_KEY (Standard: "$scheme$proxy_host$uri$is_args$args;")

Abhängigkeiten

  • pylabs.sysbase

Beispiel-Playbook

- hosts: servers
  vars:
    nginx_cache_path: "/var/cache/nginx"
    nginx_uwsgi_cache_enabled: yes
    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

Lizenz

MIT

Autoreninformation

William Wu

Über das Projekt

Install nginx package

Installieren
ansible-galaxy install pylabs.nginx
GitHub Repository
Lizenz
Unknown
Downloads
482
Besitzer