Nice write up!
After a couple of attempts I settled on a a different approach for my old Kobo.
It can connect to Dropbox so I deployed a small app in Fly.io which takes a link, bundles it as an epub and uploads to the right folder. Day-to-day all I use is a bookmarklet