allow multiple nginx domains
parent
de1948ebc7
commit
c5e6f88adc
|
@ -20,6 +20,7 @@ acme_config:
|
|||
|
||||
mumble_web_enabled: yes
|
||||
mumble_web_domain: "{{ mumble_domain }}"
|
||||
mumble_nginx_domains: "{{ [mumble_web_domain] }}"
|
||||
mumble_web_owner: mumble-web
|
||||
mumble_web_group: "{{ mumble_web_owner }}"
|
||||
mumble_web_certificate: "{{ acme_certs_dir }}/{{ mumble_web_domain }}.d/{{ acme_enabled | ternary('fullchain','cert') }}.pem"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name {{ mumble_web_domain }};
|
||||
server_name {{ mumble_nginx_domains | join(' ') }};
|
||||
|
||||
location / {
|
||||
return 301 https://$host$request_uri;
|
||||
|
@ -21,7 +21,7 @@ server {
|
|||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
|
||||
server_name {{ mumble_web_domain }};
|
||||
server_name {{ mumble_nginx_domains | join(' ') }};
|
||||
|
||||
ssl_certificate {{ mumble_web_certificate }};
|
||||
ssl_certificate_key {{ mumble_web_private_key }};
|
||||
|
|
Loading…
Reference in New Issue