Or you can just use wire guard to your router, or tail scale, or cloudflare tunnels and never actually expose the endpoint directly.