jpnewman.nginx
jpnewman.nginx
Ta rola Ansible konfiguruje proxy nginx.
Wymagania
- Ansible 2.x
Zmienne Roli
geerlingguy.nginx
Zmienna | Opis | Domyślnie |
---|---|---|
nginx_vhosts |
Dla tej roli wrapper, pozostaw to tak jak jest. | [] |
nginx_remove_default_vhost |
Dla tej roli wrapper, pozostaw to tak jak jest. | true |
jpnewman.nginx | domyślne
Zmienna | Opis | Domyślnie |
---|---|---|
nginx_vhost_available_path |
/etc/nginx/sites-available | |
nginx_vhost_path |
/etc/nginx/sites-enabled |
jpnewman.nginx | Prosty Szablon Odwrotnego Proxy (nginx_reverse_proxy.conf.j2)
Zmienna | Opis | Domyślnie |
---|---|---|
nginx_vhost_filename |
localhost | |
www_redirect |
false | |
listen_ports |
80 | |
host_aliases |
[] | |
max_upload_size |
"1024m" | |
host_name |
localhost | |
redirect_http |
false | |
ssl_enabled |
false | |
ssl_listen_ports |
[] | |
ssl_cert_path |
"" | |
ssl_key_path |
"" | |
proxy_pass_port |
8080 | |
server_auth_method |
"" | |
nginx_log_dir |
"/var/log/nginx" | |
nginx_error_log |
"{{ nginx_log_dir }}/error.log" |
|
nginx_access_log |
"{{ nginx_log_dir }}/access.log" |
|
nginx_template_file |
nginx_reverse_proxy.conf.j2 |
jpnewman.nginx | Szablon dla wielu vhostów
Zmienna | Opis | Domyślnie |
---|---|---|
nginx_vhosts_data |
||
nginx_acl_rules |
Aby zobaczyć przykłady, sprawdź następujące pliki w tej roli: -
test\templates\defaults\artifactory.yml
test\templates\defaults\drupal.yml
test\templates\defaults\kibana_reverse_proxy.yml
test\templates\defaults\multiple_vhosts.yml
Niestandardowe szablony
Dowolny niestandardowy szablon może być używany za pomocą zmiennej nginx_template_file
, a potrzebne zmienne umieszczone w host_vars
i group_vars
, itd.
Zależności
- geerlingguy.nginx
Przykład Playbooka
- hosts: serwery
roles:
- { rola: jpnewman.nginx, tagi: ["nginx"] }
Licencja
MIT / BSD
Informacje o Autorze
John Paul Newman
Zainstaluj
ansible-galaxy install jpnewman.nginx
Licencja
mit
Pobrania
5.5k
Właściciel
Software Engineer with DevOps working on both Windows and *nix.