1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-19 05:09:43 +02:00
planka/server/config
Matthew Stickney 37fc7847e8 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
..
env feat: Additional httpOnly token for enhanced security in browsers 2024-09-01 09:31:04 +02:00
locales Initial commit 2019-08-31 04:07:25 +05:00
blueprints.js Add test libs, update dependencies 2020-08-20 15:35:46 +05:00
bootstrap.js Code formatting with prettier, change eslint config for the server 2019-11-05 18:01:42 +05:00
custom.js feat: Configurable file storage locations (#886) 2024-09-20 20:29:11 +02:00
datastores.js chore: Update dependencies 2024-04-23 15:45:47 +02:00
globals.js Code formatting with prettier, change eslint config for the server 2019-11-05 18:01:42 +05:00
http.js fix: Disable x-powered-by header (#829) 2024-07-21 18:27:26 +02:00
i18n.js Code formatting with prettier, change eslint config for the server 2019-11-05 18:01:42 +05:00
log.js fix: Use custom logger only for production 2022-08-23 20:45:42 +02:00
models.js fix: Fix saving milliseconds for timestamps 2023-06-12 23:54:57 +02:00
policies.js feat: Ability to allow everyone to create projects (#787) 2024-06-14 16:38:06 +02:00
routes.js feat: Configurable file storage locations (#886) 2024-09-20 20:29:11 +02:00
security.js feat: Store accessToken in cookies instead of localStorage 2022-04-26 18:01:55 +05:00
session.js Add test libs, update dependencies 2020-08-20 15:35:46 +05:00
sockets.js Code formatting with prettier, change eslint config for the server 2019-11-05 18:01:42 +05:00
views.js fix: Front-end base url with path (#303) 2022-09-30 14:48:58 +05:00