HTTPS for SuperAdmin
Serve SuperAdmin itself over HTTPS with your own certificate.
The install script asks whether SuperAdmin should use HTTPS. If you chose HTTP, you can switch later with the script reconfigure.sh and a certificate that you already have.
Switch to HTTPS
1. Become root on the server and copy the certificate and the key to these exact paths, where superadmin.example.com is your domain:
/www/ssl/superadmin.example.com/fullchain.cer
/www/ssl/superadmin.example.com/superadmin.example.com.keyThe .cer file must hold the full chain.
2. Run the script:
cd /www/superadmin
bash reconfigure.sh y superadmin.example.com nThe arguments mean: use HTTPS (y), the domain, and do not request a new certificate (n).
3. Wait for this line:
Configured superadmin with https://superadmin.example.comThe script then restarts SuperAdmin.
4. Open https://superadmin.example.com/. The HTTP address redirects to it.
Switch back to HTTP
cd /www/superadmin
bash reconfigure.sh n superadmin.example.comRenew the certificate
Replace the two files and reload Nginx:
nginx -t && nginx -s reload