Can't change peertube video storage location

hello,
i have spent the evening trying to change the storage location of peertube videos. to no avail.
here is the order of events that i tried:

  1. i have a storage drive connected to the server, mounted at /var/storage.
  2. i then copied the contents of /var/www/peertube/storage into the /var/storage directory.
  3. i changed the permission of the new directory to exactly match the ls -ld output of /var/www/peertube/storage directory.
  4. i edited production.yaml to change all the paths under the storage section to the new storage locations. since i just copied the whole /storage folder, there should be nothing amiss.
  5. finally, i do systemctl restart nginx and systemctl restart peertube

after the above, nginx remains stuck at « bad gateway » and there’s nothing i’ve found to do about it. did i miss anything?

Can you paste the errors of the server?

Have you also edited the nginx config, to update the paths?