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