I am also trying to do exactly that. However, not with local file sharing, but by creating my own server through the NAS path I opened on the modem and making my server accessible via Nextcloud and Docker. Details can be accessed here:
By the way, I would like to draw attention to the fact that many topics have been opened regarding synchronization.