You can also paste the “UNC path” to the folders on the NAS into the address bar in the “Add folder” dialog in Plex.
For either method to work reliably, you need to create the same username and password on the NAS, as you are using on the server machine.