mirror of http://138.197.108.81/gattes/matrix.git
Adding custom 8448 SSL port listener
This commit is contained in:
parent
3bdcc4473a
commit
a9ae2c3335
10
install.sh
10
install.sh
|
@ -142,8 +142,6 @@ echo -e "Configuring nginx\n"
|
|||
cat <<EOF > /etc/nginx/sites-enabled/default
|
||||
server {
|
||||
listen 80;
|
||||
listen 8448;
|
||||
|
||||
server_name ${DOMAIN};
|
||||
|
||||
location /.well-known/matrix/client {
|
||||
|
@ -212,11 +210,17 @@ systemctl enable --now nginx
|
|||
|
||||
echo -e "Generate SSL cert\n"
|
||||
certbot --nginx -d ${DOMAIN} --agree-tos --register-unsafely-without-email
|
||||
systemctl enable --now coturn
|
||||
|
||||
# Add certbot SSL cert renewal to crontab
|
||||
crontab -l | { cat; echo '43 6 * * * certbot renew --post-hook "systemctl reload nginx"'; } | crontab -
|
||||
|
||||
# Add custom 8448 SSL port for Matrix Federation
|
||||
sed -i '/listen\ 443\ ssl/a\\tlisten\ 8448\ ssl\;' /etc/nginx/sites-enabled/default
|
||||
nginx -s reload
|
||||
|
||||
# Enable coturn
|
||||
systemctl enable --now coturn
|
||||
|
||||
# Finally, start services
|
||||
# Ensuring the DB dir is clean before bootstrapping
|
||||
rm -rf ${BASE_DIR}/db/*
|
||||
|
|
Loading…
Reference in New Issue