We study numerically the properties of spin transport and charge transport in a current-biased nanoscale diffusive superconductor/ferromagnet/superconductor junction when the magnetization texture is nonuniform. Specifically, we incorporate the presence of a Bloch/Neel domain walls and conical ferromagnetism, including the role of spin-active interfaces. The superconducting leads are assumed to be of the conventional $s$-wave type. In particular, we investigate how the $0\text{\ensuremath{-}}\ensuremath{\pi}$ transition is influenced by the inhomogeneous magnetization texture and focus on the particular case where the charge current vanishes while the spin current is nonzero. In the case of a Bloch/Neel domain wall, the spin current can be seen only for one component of the spin polarization, whereas in the case of conical ferromagnetism the spin current has the three components. This is in contrast to a scenario with a homogeneous exchange field, where the spin current vanishes completely. We explain all of these results in terms of the interplay between the triplet anomalous Green's function induced in the ferromagnetic region and the local direction of the magnetization vector in the ferromagnet. Interestingly, we find that the spin current exhibits discontinuous jumps at the $0\text{\ensuremath{-}}\ensuremath{\pi}$ transition points of the critical charge current. This is seen both in the presence of a domain wall and for conical ferromagnetism. We explain this result in terms of the different symmetry obeyed by the current-phase relation when comparing the charge and spin currents. Specifically, we find that whereas the charge current obeys the well-known relation ${I}_{c}(\ensuremath{\phi})=\ensuremath{-}{I}_{c}(\ensuremath{-}\ensuremath{\phi})$, the spin current satisfies ${I}_{s}(\ensuremath{\phi})={I}_{s}(\ensuremath{-}\ensuremath{\phi})$, where $\ensuremath{\phi}$ is the superconducting phase difference.