Update (major): Add search engine submission button

This commit is contained in:
2023-08-02 00:04:44 +08:00
parent f25fea8d68
commit 592637b0b3
31 changed files with 1346 additions and 75 deletions

13
config/index-now.php Normal file
View File

@@ -0,0 +1,13 @@
<?php
declare(strict_types=1);
return [
'delay' => env('INDEXNOW_SUBMIT_DELAY', 600),
'host' => env('APP_URL', 'localhost'),
'key' => env('INDEXNOW_KEY', ''),
'key-location' => env('INDEXNOW_KEY_LOCATION', ''),
'log-failed-submits' => env('INDEXNOW_LOG_FAILED_SUBMITS', true),
'production-env' => env('INDEXNOW_PRODUCTION_ENV', 'production'),
'search-engine' => env('INDEXNOW_SEARCH_ENGINE', 'api.indexnow.org'),
];

View File

@@ -0,0 +1,11 @@
<?php
return [
'google' => [
'auth_config' => storage_path('google_auth_config_indexing.json'),
'scopes' => [
\Google_Service_Indexing::INDEXING,
],
],
];