aboutsummaryrefslogtreecommitdiffstats
path: root/storage-backend/config
diff options
context:
space:
mode:
authorsteckbrief <steckbrief@chefmail.de>2016-01-04 21:48:17 +0100
committersteckbrief <steckbrief@chefmail.de>2016-01-04 21:48:17 +0100
commitfbba3876b537e84699b854e098936a5cd4fe0c8b (patch)
tree25ab681f333b83dc7b6859aa7b9504d158a497ec /storage-backend/config
parent45cd34e42b9a980b76b66310c823fc8d2f5b55cb (diff)
Reduced manual configuration, folder structure created
Determination of storage paths now relative to script directory and programmatically Determination of get and put URLs now based on the slot request request Basic access restriction to default directories
Diffstat (limited to 'storage-backend/config')
-rw-r--r--storage-backend/config/.htaccess1
-rw-r--r--storage-backend/config/config.inc.php13
2 files changed, 14 insertions, 0 deletions
diff --git a/storage-backend/config/.htaccess b/storage-backend/config/.htaccess
new file mode 100644
index 0000000..3418e55
--- /dev/null
+++ b/storage-backend/config/.htaccess
@@ -0,0 +1 @@
+deny from all \ No newline at end of file
diff --git a/storage-backend/config/config.inc.php b/storage-backend/config/config.inc.php
new file mode 100644
index 0000000..dd05a15
--- /dev/null
+++ b/storage-backend/config/config.inc.php
@@ -0,0 +1,13 @@
+<?php
+/*
+ * Configuration file for http upload storage backend
+ */
+
+return [
+ // Array of keys of XMPP Server allowed to request slots
+ 'valid_xmpp_server_keys' => ['abc'],
+ // Max Upload size in bytes
+ 'max_upload_file_size' => 10 * 1024 * 1024,
+ // Array of characters which are not allowed in filenames
+ 'invalid_characters_in_filename' => ['/'],
+];