allow multiple nginx domains

master
HgO 2020-12-26 01:48:42 +01:00
parent de1948ebc7
commit c5e6f88adc
2 changed files with 3 additions and 2 deletions

View File

@ -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"

View File

@ -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 }};