Error 502 after ssl renewal

My domain is:

I ran this command: ee site update --letsencrypt

It produced this output: Renewing certificate for domain
Certificate received
Certificate stored
Certificate renewed successfully!
Success: SSL verification completed.
Starting site’s services.
Success: SSL renewal completed.

My web server is (include version): lemp nginx with easyengine v4

The operating system my web server runs on is (include version): ubuntu 18.04

My hosting provider, if applicable, is: digitaloean

I can login to a root shell on my machine (yes or no, or I don’t know): yes

I’m using a control panel to manage my site (no, or provide the name and version of the control panel): wordpress

After the successful renewal I get error 502 when I try to load my website. I am using cloudflare if that maters.