Permalink
Browse files

Adding path to key for the caddyfile

  • Loading branch information...
1 parent 37534dd commit eb308013418682a8ef1a09e16854331beb1c17e5 @ghecquet ghecquet committed Aug 24, 2016
Showing with 5 additions and 5 deletions.
  1. +5 −5 core/src/plugins/core.mq/MqManager.php
@@ -515,8 +515,8 @@ public function generateCaddyFile($params) {
$hosts[$key] = array_merge(
(array)$hosts[$key],
[
- "pydioauth" => [$path, $authURL, $tokenURL . "&device=websocket"],
- "pydiows" => [$path]
+ "pydioauth " . $path => [$authURL, $tokenURL . "&device=websocket"],
+ "pydiows " . $path => []
]
);
}
@@ -534,16 +534,16 @@ public function generateCaddyFile($params) {
$hosts[$key] = array_merge(
(array)$hosts[$key],
[
- "header" => [$path, "{\n" .
+ "header " . $path => ["{\n" .
"\tAccess-Control-Allow-Origin " . $serverURL . "\n" .
"\tAccess-Control-Request-Headers *\n" .
"\tAccess-Control-Allow-Methods POST\n" .
"\tAccess-Control-Allow-Headers Range\n" .
"\tAccess-Control-Allow-Credentials true\n" .
"}"
],
- "pydioauth" => [$path, $authURL, $tokenURL . "&device=upload"],
- "pydioupload" => [$path]
+ "pydioauth " . $path => [$authURL, $tokenURL . "&device=upload"],
+ "pydioupload " . $path => []
]
);
}

0 comments on commit eb30801

Please sign in to comment.