1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-19 13:19:44 +02:00
planka/server/api/controllers
Matthew Stickney 368ead982e
feat: Configurable file storage locations (#886)
* feat: Make logfile location customizable

It may be desirable to log to a more standard location (e.g. in /var/log/),
or in some cases to turn logging to file off. To support these, use a
custom config property to determine the location of the output log file,
and default to the previous location if it is unset.

* 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 20:29:11 +02:00
..
access-tokens feat: Ability to configure OIDC claims source (#888) 2024-09-20 16:19:54 +02:00
actions feat: Toggle actions details, little redesign 2022-07-29 17:40:18 +02:00
attachments feat: Configurable file storage locations (#886) 2024-09-20 20:29:11 +02:00
board-memberships feat: Webhooks configuration, all events support, refactoring 2024-06-12 00:51:36 +02:00
boards feat: Configurable file storage locations (#886) 2024-09-20 20:29:11 +02:00
card-labels feat: Webhooks configuration, all events support, refactoring 2024-06-12 00:51:36 +02:00
card-memberships feat: Webhooks configuration, all events support, refactoring 2024-06-12 00:51:36 +02:00
cards fix: Fix styles, refactoring 2024-08-12 23:17:17 +02:00
comment-actions feat: Webhooks configuration, all events support, refactoring 2024-06-12 00:51:36 +02:00
labels feat: Webhooks configuration, all events support, refactoring 2024-06-12 00:51:36 +02:00
lists feat: Webhooks configuration, all events support, refactoring 2024-06-12 00:51:36 +02:00
notifications feat: Webhooks configuration, all events support, refactoring 2024-06-12 00:51:36 +02:00
project-managers feat: Webhooks configuration, all events support, refactoring 2024-06-12 00:51:36 +02:00
projects feat: Configurable file storage locations (#886) 2024-09-20 20:29:11 +02:00
tasks feat: Webhooks configuration, all events support, refactoring 2024-06-12 00:51:36 +02:00
users feat: Configurable file storage locations (#886) 2024-09-20 20:29:11 +02:00
.gitkeep Initial commit 2019-08-31 04:07:25 +05:00
show-config.js ref: Refactoring, fix linting 2024-07-16 12:33:38 +02:00