|
|
@ -30,10 +30,16 @@ server { |
|
|
|
root /var/www; |
|
|
|
root /var/www; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# delegated Matrix server |
|
|
|
location /.well-known/matrix { |
|
|
|
location /.well-known/matrix { |
|
|
|
proxy_pass https://${MATRIX_HOSTNAME}; |
|
|
|
proxy_pass https://${MATRIX_HOSTNAME}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# separate Mastodon WEB_DOMAIN and LOCAL_DOMAIN |
|
|
|
|
|
|
|
location = /.well-known/host-meta { |
|
|
|
|
|
|
|
return 301 https://${MASTODON_HOSTNAME}$request_uri; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
listen 443 ssl default_server; |
|
|
|
listen 443 ssl default_server; |
|
|
|
ssl_certificate /etc/letsencrypt/live/${DOMAIN_NAME}/fullchain.pem; |
|
|
|
ssl_certificate /etc/letsencrypt/live/${DOMAIN_NAME}/fullchain.pem; |
|
|
|
ssl_certificate_key /etc/letsencrypt/live/${DOMAIN_NAME}/privkey.pem; |
|
|
|
ssl_certificate_key /etc/letsencrypt/live/${DOMAIN_NAME}/privkey.pem; |
|
|
|