ServiceWorker script evaluation failed due to HTTP (not HTTPS)

I use DigitalOcean and I destroyed the droplet and made a new one. I followed the steps (without using the guide I mentioned before, rather the script). But I still got the same error.
After running the commands I get:
image