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:
i have a storage drive connected to the server, mounted at /var/storage.
i then copied the contents of /var/www/peertube/storage into the /var/storage directory.
i changed the permission of the new directory to exactly match the ls -ld output of /var/www/peertube/storage directory.
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.
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?
ummm. no i was not aware i had to. this would make total sense…
is the path to the config /etc/nginx/sites-available/peertube where i have to update the paths?
ok so under /etc/nginx/sites-available/peertube there was a section called « performance optimizations ». under there i found the only reference to the storage. this was entered as root /var/www/peertube/storage
i updated that line with the new path, and now everything seems to load correctly. after i did reload nginx or course. does that sound correct?