I have one server running Centos and I wanted to run the the letsencrypt script to setup ssl and TLS.
It turns out you only have to make three edits
1st the sed statements simply need to point to fusionpbx.conf instead of just fusionpbx:
sed "s@ssl_certificate /etc/ssl/certs/nginx.crt;@ssl_certificate /etc/dehydrated/certs/$domain_name/fullchain.pem;@g" -i /etc/nginx/sites-available/fusionpbx.conf
sed "s@ssl_certificate_key /etc/ssl/private/nginx.key;@ssl_certificate_key /etc/dehydrated/certs/$domain_name/privkey.pem;@g" -i /etc/nginx/sites-available/fusionpbx.conf
2nd you need to change the chown statement at the end to:
chown -R freeswitch:daemon /etc/freeswitch/tls
You might also have to restart nginx
It turns out you only have to make three edits
1st the sed statements simply need to point to fusionpbx.conf instead of just fusionpbx:
sed "s@ssl_certificate /etc/ssl/certs/nginx.crt;@ssl_certificate /etc/dehydrated/certs/$domain_name/fullchain.pem;@g" -i /etc/nginx/sites-available/fusionpbx.conf
sed "s@ssl_certificate_key /etc/ssl/private/nginx.key;@ssl_certificate_key /etc/dehydrated/certs/$domain_name/privkey.pem;@g" -i /etc/nginx/sites-available/fusionpbx.conf
2nd you need to change the chown statement at the end to:
chown -R freeswitch:daemon /etc/freeswitch/tls
You might also have to restart nginx