Is it safe? Where to put the fuse?
You need fuses as follows :

1) in the supply cable from the battery

And

2) in each supply to the loads ie 1 for the vacuum, the other for the controller.

These fuses need to be rated for the demands at those points.