hispanico.letsencrypt-nginx-revproxy
ansible-letsencrypt-nginx-revproxy
Konfiguruje Nginx jako serwer proxy odwrotnego dla wielu stron internetowych z certyfikatem Let's Encrypt.
Wymagania
Ten moduł wymaga Ansible 1.9 lub wyższej.
Zmienne modułu
Wartości domyślne:
nginx_revproxy_sites: # Lista stron do proxy odwrotnego
example.com: # Nazwa domeny
domains: # Lista aliasów server_name
- example.com
- www.example.com
upstreams: # Lista upstreamów
- { backend_address: 192.168.0.100, backend_port: 80 }
- { backend_address: 192.168.0.101, backend_port: 8080 }
letsencrypt: true # Ustaw na True, jeśli używasz roli hispanico.letsencrypt-nginx-revproxy
letsencrypt_email: '[email protected]'
Zależności
Przykładowy playbook
Ten przykład konfiguruje nginx jako serwer proxy odwrotnego dla następujących stron:
- example.org z certyfikatem ssl własnej produkcji
- example.com z certyfikatem ssl wygenerowanym za pomocą protokołu ACME Let's Encrypt.
- hosts: all
roles:
- ansible-nginx-revproxy
- ansible-letsencrypt-nginx-revproxy
vars:
nginx_revproxy_sites:
example.org:
domains:
- example.org
- www.example.org
upstreams:
- { backend_address: 192.168.0.200, backend_port: 80 }
- { backend_address: 192.168.0.201, backend_port: 80 }
letsencrypt: false
example.com:
domains:
- example.com
- www.example.com
upstreams:
- { backend_address: 192.168.0.100, backend_port: 80 }
- { backend_address: 192.168.0.101, backend_port: 80 }
letsencrypt: true
Licencja
Licencjonowane na podstawie Licencji GPLv3. Zobacz plik LICENSE, aby uzyskać szczegóły.
Informacje o autorze
Hispanico
Zainstaluj
ansible-galaxy install hispanico.letsencrypt-nginx-revproxy
Licencja
Unknown
Pobrania
212
Właściciel
@openwisp Contributor and @ninuxorg Member