diff --git a/app/Http/Middleware/TrustHosts.php b/app/Http/Middleware/TrustHosts.php new file mode 100644 index 0000000..4dbc199 --- /dev/null +++ b/app/Http/Middleware/TrustHosts.php @@ -0,0 +1,21 @@ + + */ + public function hosts() + { + return [ + $this->allSubdomainsOfApplicationUrl(), + config('app.k8s_internal_host'), + ]; + } +} \ No newline at end of file diff --git a/config/app.php b/config/app.php index 4b01574..b340734 100644 --- a/config/app.php +++ b/config/app.php @@ -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'), /* |-------------------------------------------------------------------------- diff --git a/manifest.yaml b/manifest.yaml index 2b1f162..720cb28 100644 --- a/manifest.yaml +++ b/manifest.yaml @@ -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}"