1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-24 15:49:46 +02:00
planka/server
Matthew Stickney 13f0a68523 feat: Support alternate storage locations for uploaded files
This involves a couple primary changes:
1) to make Sails' temporary file-upload directory a configurable location
   by using a common file-upload-receiving helper;
2) to create custom static routes for the file-upload locations, so they
   can be outside the application's public directory; and
3) to use the file-uploading handler everywhere that receives files, so
   config for the helper is applied to all file uploads consistently.

This is sufficient to allow the application directory to be deployed read-
only, with writable storage used for file uploads. The new config property
for Sails' temporary upload directory, combined with the existing settings
for user-avatar and background-image locations are sufficient to handle
uploads; the new custom routes handle serving those files from external
locations.

The default behavior of the application should be unchanged, with files
uploaded to, and served from, the public directory if the relevant
config properties aren't set to other values.
2024-09-20 14:26:41 -04:00
..
api feat: Support alternate storage locations for uploaded files 2024-09-20 14:26:41 -04:00
config feat: Support alternate storage locations for uploaded files 2024-09-20 14:26:41 -04:00
db feat: Additional httpOnly token for enhanced security in browsers 2024-09-01 09:31:04 +02:00
private/attachments feat: Remove attachments from public access 2022-04-26 22:20:20 +05:00
public feat: Remove attachments from public access 2022-04-26 22:20:20 +05:00
test feat: Modify logger to log to file that supports fail2ban (#284) 2022-08-23 03:42:56 +05:00
utils feat: Make logfile location customizable 2024-09-19 22:42:27 -04:00
views Docker, update readme, update dependencies 2019-10-01 04:18:33 +05:00
.editorconfig Initial commit 2019-08-31 04:07:25 +05:00
.env.sample feat: Make logfile location customizable 2024-09-19 22:42:27 -04:00
.eslintignore ref: Ignore public js linting (#278) 2022-08-08 17:58:41 +05:00
.gitignore meta: Fix ignore files for logs 2022-08-23 00:51:33 +02:00
.npmrc Update server scaffold 2019-10-14 21:50:52 +05:00
.sailsrc Docker, update readme, update dependencies 2019-10-01 04:18:33 +05:00
app.js feat: Add gallery for attachments 2022-06-20 18:27:39 +02:00
get-config.js feat: Add gallery for attachments 2022-06-20 18:27:39 +02:00
package-lock.json feat: Support alternate storage locations for uploaded files 2024-09-20 14:26:41 -04:00
package.json feat: Support alternate storage locations for uploaded files 2024-09-20 14:26:41 -04:00
README.md Initial commit 2019-08-31 04:07:25 +05:00

Planka server