DONE: trust all proxies

This commit is contained in:
ISMAIL MASSERAN
2026-09-01 10:33:00 +08:00
parent 86525d9559
commit 0115f32833
3 changed files with 8 additions and 6 deletions
+4 -4
View File
@@ -3,14 +3,14 @@ APP_ENV=staging
APP_VERSION=v2.2-staging
APP_KEY=base64:O1XZDqK4H6+3GdrODgCaLr2l+OoWvgVhYr0GJ1KizW8=
APP_DEBUG=true
APP_URL=http://172.16.6.200:8091
APP_URL=https://staging.erahn.com.my
HTTP_PORT=8091
MYSQL_PUBLISH_PORT=3309
API_URL=http://172.16.6.200:8090
API_URL_KOOP=http://172.16.6.200:8090
API_URL_PKB=http://172.16.6.200:8090
API_URL=https://api-staging.erahn.com.my/api/
API_URL_KOOP=https://api-staging.erahn.com.my/api/
API_URL_PKB=https://api-staging.erahn.com.my/api/
API_ARRAHNBID=http://lelong.test/api/
LOG_CHANNEL=stack
+1 -1
View File
@@ -12,7 +12,7 @@ class TrustProxies extends Middleware
*
* @var array|string|null
*/
protected $proxies;
protected $proxies = '*';
/**
* The headers that should be used to detect proxies.
+3 -1
View File
@@ -23,6 +23,8 @@ class AppServiceProvider extends ServiceProvider
*/
public function boot()
{
//
if (strpos((string) config('app.url'), 'https://') === 0) {
\Illuminate\Support\Facades\URL::forceScheme('https');
}
}
}