1
0
forked from infra/ansible
infra/roles/jitsi/templates/vhost.j2

28 lines
488 B
Plaintext
Raw Normal View History

server {
listen 80;
listen [::]:80;
server_name {{ jitsi_domain }};
location /.well-known/acme-challenge {
default_type "text/plain";
alias /var/www/acme-challenge;
}
location / {
return 301 https://{{ jitsi_domain }}$request_uri;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name {{ jitsi_domain }};
ssl_certificate_key /etc/nginx/ssl/{{ jitsi_domain }}.key;
ssl_certificate /etc/nginx/ssl/{{ jitsi_domain }}.crt;
root /var/www/jitsi;
}