test certbot
This commit is contained in:
parent
dd85077142
commit
93ff9a0c04
|
@ -367,6 +367,7 @@ $utopia->get('/.well-known/acme-challenge')
|
||||||
$base = realpath(__DIR__.'/../certs');
|
$base = realpath(__DIR__.'/../certs');
|
||||||
$path = str_replace('/.well-known/acme-challenge/', '', $request->getParam('q'));
|
$path = str_replace('/.well-known/acme-challenge/', '', $request->getParam('q'));
|
||||||
$absolute = realpath($base.'/'.$path);
|
$absolute = realpath($base.'/'.$path);
|
||||||
|
return $response->json($files1 = scandir($base));
|
||||||
|
|
||||||
if(!$absolute) {
|
if(!$absolute) {
|
||||||
throw new Exception('Unknown Path', 404);
|
throw new Exception('Unknown Path', 404);
|
||||||
|
|
Loading…
Reference in a new issue