forked from infra/ansible
pretix: add additional event domain
This commit is contained in:
parent
1fa4fb24aa
commit
05e5e2d6a0
@ -150,6 +150,7 @@ pretalx_dbpass: "{{ vault_pretalx_dbpass }}"
|
||||
pretalx_mail: pretalx@binary-kitchen.de
|
||||
|
||||
pretix_domain: pretix.events.binary-kitchen.de
|
||||
pretix_domainx: tickets.eh21.easterhegg.eu
|
||||
pretix_dbname: pretix
|
||||
pretix_dbuser: pretix
|
||||
pretix_dbpass: "{{ vault_pretix_dbpass }}"
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
|
||||
{{ pretix_domain }}:
|
||||
{{ pretix_domain }} {{pretix_domainx }}:
|
||||
- path: /etc/nginx/ssl/{{ pretix_domain }}.key
|
||||
user: root
|
||||
group: root
|
||||
|
@ -14,11 +14,27 @@ server {
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
|
||||
server_name {{ pretix_domainx }};
|
||||
|
||||
location /.well-known/acme-challenge {
|
||||
default_type "text/plain";
|
||||
alias /var/www/acme-challenge;
|
||||
}
|
||||
|
||||
location / {
|
||||
return 301 https://{{ pretix_domainx }}$request_uri;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
|
||||
server_name {{ pretix_domain }};
|
||||
server_name {{ pretix_domain }} {{ pretix_domainx }};
|
||||
|
||||
ssl_certificate_key /etc/nginx/ssl/{{ pretix_domain }}.key;
|
||||
ssl_certificate /etc/nginx/ssl/{{ pretix_domain }}.crt;
|
||||
|
Loading…
Reference in New Issue
Block a user