Nginx lost /admin record after install SSL cert problem

So I just tried to install a single domain SSL certificate, I think it succeed but it complains “Something went wrong, sorry.” and then when trying to access admin panel I only got 404 page.

I did some check and seems nginx has lost configuration for /admin, in this file /etc/nginx/conf.d/local.conf

By adding back related configs from https://github.com/mail-in-a-box/mailinabox/blob/master/conf/nginx-primaryonly.conf it works again.

Not sure what goes wrong exactly, tried to check /var/log/syslog but found nothing…

Now it completely fails when I tried to add user under another domain, after saying “Something went wrong, sorry.” I just completely lost my /admin even if I add the nginx config back it’s just 404.