Ubuntu Server; seeking Samba two-way synchronization via WAN
Ubuntu Server; seeking Samba two-way synchronization via WAN
You're looking to set up a custom Linux server on an Ubuntu 18.10 system, using Samba shares for both local and WAN access. The goal is to maintain real-time synchronization between your work computer and home setup via a custom Nginx server with Django support. It sounds like you want to leverage the "Drive" feature of Synology NAS for seamless file sharing.
You could simply set up Nextcloud on your server and then run the Nextcloud-client on any devices you wish to maintain synchronized files; directing it to a specific folder ensures automatic updates between the server and all connected computers (and the client installed elsewhere). It functions via the internet as well.
Check out Unison at https://www.cis.upenn.edu/~bcpierce/unison/