From f89e7b2bd549474439e684c052623af7e2e8d27d Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 4 Nov 2013 19:21:09 -0800 Subject: make the storage permissions tweakable for hosted environments where they may require tweaking. --- boot.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'boot.php') diff --git a/boot.php b/boot.php index aa56aff3d..99ec5de32 100755 --- a/boot.php +++ b/boot.php @@ -90,6 +90,21 @@ define ( 'LANGUAGE_DETECT_MIN_LENGTH', 128 ); define ( 'LANGUAGE_DETECT_MIN_CONFIDENCE', 0.01 ); +/** + * Default permissions for file-based storage (webDAV, etc.) + * These files will be owned by the webserver who will need write + * access to the "storage" folder. + * Ideally you should make this 700, however some hosted platforms + * may not let you change ownership of this directory so we're + * defaulting to both owner-write and group-write privilege. + * This should work for most cases without modification. + * Over-ride this in your .htconfig.php if you need something + * either more or less restrictive. + */ + +define ( 'STORAGE_DEFAULT_PERMISSIONS', 0770 ); + + /** * * An alternate way of limiting picture upload sizes. Specify the maximum pixel -- cgit v1.2.3