server { listen 80; server_name meet.example.com; root /usr/share/jitsi-meet; index index.html; # Let's Encrypt location ^~ /.well-known/acme-challenge/ { default_type "text/plain"; alias /var/www/lets_encrypt/challenges/; } location = /.well-known/acme-challenge/ { return 404; } location / { return 301 https://meet.example.com.de$request_uri; } } server { listen 443 ssl; server_name meet.example.com; ssl on; ssl_certificate /etc/ssl/certs/jitsi.crt; ssl_certificate_key /etc/ssl/private/jitsi.key; # WIP