inabahare / lewd2

A based file uploader
https://lewd.se
GNU General Public License v3.0
23 stars 3 forks source link

PUBLIC_FOLDER_PATH to set output directory #92

Open kattjevfel opened 4 years ago

kattjevfel commented 4 years ago

I originally started writing this as a "doesn't work" ticket, but figured I had just misunderstood its purpose, so here is a feature request instead.

Currently, setting _PUBLIC_FOLDERPATH only changes where the internal webserver looks for static files. What I'd like to see is it also being used for picking where the files get generated, instead of being hardcoded: https://github.com/inabahare/lewd2/blob/a25241ebeb25e0b676c0a79991b22267358e5ff8/packages/frontend/build.js#L11 https://github.com/inabahare/lewd2/blob/a25241ebeb25e0b676c0a79991b22267358e5ff8/packages/frontend/build.js#L18

Reasoning behind wanting to put it elsewhere is so it can be accessed by another linux container via a bind mount. Another reason would be to load the public folder with 2TB of waifus and not want that on my root drive.

EDIT: Found out that it also doesn't like inputting full paths either:

Aug 18 23:24:58 lewd node[2346]: Serving files from: /var/www/lewd2/packages/backend/dist/mnt/lewd/public/