Merge branch 'develop' into trunk
This commit is contained in:
commit
019c03ccb5
3 changed files with 25 additions and 1 deletions
21
app/Http/Middleware/TrustHosts.php
Normal file
21
app/Http/Middleware/TrustHosts.php
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Illuminate\Http\Middleware\TrustHosts as Middleware;
|
||||
|
||||
class TrustHosts extends Middleware
|
||||
{
|
||||
/**
|
||||
* Get the host patterns that should be trusted.
|
||||
*
|
||||
* @return array<int, string|null>
|
||||
*/
|
||||
public function hosts()
|
||||
{
|
||||
return [
|
||||
$this->allSubdomainsOfApplicationUrl(),
|
||||
config('app.k8s_internal_host'),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
@ -52,7 +52,9 @@ return [
|
|||
|
|
||||
*/
|
||||
|
||||
'url' => env('APP_URL', 'https://mesbr.test'),
|
||||
'url' => env('APP_URL', 'http://localhost'),
|
||||
|
||||
'k8s_internal_host' => env('APP_K8S_INTERNAL_HOST'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ data:
|
|||
APP_KEY: "${APP_APP_KEY}"
|
||||
APP_DEBUG: "${APP_APP_DEBUG}"
|
||||
APP_URL: "https://${REDIRECT}${APP_DOMAIN}"
|
||||
APP_K8S_INTERNAL_HOST: "${APP_APP_K8S_INTERNAL_HOST}"
|
||||
LOG_CHANNEL: "k8s"
|
||||
DB_HOST: "${APP_DB_HOST}"
|
||||
DB_PORT: "${APP_DB_PORT}"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue