1
0
Fork 0
mirror of synced 2024-06-02 02:44:47 +12:00

Merge pull request #1596 from TorstenDittmann/fix-ssl-acme-challeng-check

fix(ssl): fix check for auto generation
This commit is contained in:
Torsten Dittmann 2021-09-06 17:30:26 +02:00 committed by GitHub
commit 636e6bc8dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,7 +42,7 @@ App::init(function ($utopia, $request, $response, $console, $project, $consoleDB
if (empty($domain->get()) || !$domain->isKnown() || $domain->isTest()) {
$domains[$domain->get()] = false;
Console::warning($domain->get() . ' is not a publicly accessible domain. Skipping SSL certificate generation.');
} elseif(str_ends_with($request->getURI(), '/.well-known/acme-challenge')) {
} elseif(str_starts_with($request->getURI(), '/.well-known/acme-challenge')) {
Console::warning('Skipping SSL certificates generation on ACME challenge.');
} else {
Authorization::disable();