Here is a code block template for a standard NGINX redirect to SSL. This is a wildcard redirect so it will preserve the original URI.
Login to your cPanel account. https://servername.com:2083 Either type in the search bar, or locate the ‘redirects’ module Click on ‘Redirects’ Leave the settings on “Permanent 301”, and “All Public Domains” In the ‘redirects to’ text box type in your domain name with “https” in front. Check ‘wildcard redirect’ Click “Add”