Merge branch 'branch-jagad' into 'main'

update proxy

See merge request fiqhpratama1/xpendify!44
This commit is contained in:
Jagad Raya
2025-02-03 10:19:51 +00:00
3 changed files with 8 additions and 13 deletions
+1
View File
@@ -18,6 +18,7 @@ PHP_CLI_SERVER_WORKERS=4
BCRYPT_ROUNDS=12 BCRYPT_ROUNDS=12
LOG_CHANNEL=stack LOG_CHANNEL=stack
LOG_STACK=single LOG_STACK=single
LOG_DEPRECATIONS_CHANNEL=null LOG_DEPRECATIONS_CHANNEL=null
+1
View File
@@ -12,3 +12,4 @@ npm-debug.log
yarn-error.log yarn-error.log
/.idea /.idea
/.vscode /.vscode
.env
+5 -12
View File
@@ -7,19 +7,12 @@ use Illuminate\Http\Request;
class TrustProxies extends Middleware class TrustProxies extends Middleware
{ {
/** // Trust all proxies (simplest for reverse proxy setups)
* The trusted proxies for this application. protected $proxies = '*';
*
* @var array|string
*/
protected $proxies;
/** // Headers to detect HTTPS
* The headers that should be used to detect proxies. protected $headers =
* Request::HEADER_X_FORWARDED_FOR |
* @var int
*/
protected $headers = Request::HEADER_X_FORWARDED_FOR |
Request::HEADER_X_FORWARDED_HOST | Request::HEADER_X_FORWARDED_HOST |
Request::HEADER_X_FORWARDED_PORT | Request::HEADER_X_FORWARDED_PORT |
Request::HEADER_X_FORWARDED_PROTO | Request::HEADER_X_FORWARDED_PROTO |