Skip to content

Commit 8ab4faa

Browse files
committed
remove TRUSTED_PROXIES from .env.example
make style ci happy
1 parent ee26a7e commit 8ab4faa

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.env.example

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ APP_CLEAR_TASKLOG=720
77
APP_DELETE_MINUTES=10
88
CONSOLE_PUSH_FREQ=250
99
CONSOLE_PUSH_COUNT=10
10-
TRUSTED_PROXIES=null
1110

1211
DB_HOST=localhost
1312
DB_PORT=3306

app/Http/Kernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Kernel extends HttpKernel
1717
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
1818
\Illuminate\Session\Middleware\StartSession::class,
1919
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
20-
20+
2121
\Pterodactyl\Http\Middleware\LanguageMiddleware::class,
2222
\Fideloper\Proxy\TrustProxies::class,
2323
];

config/trustedproxy.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@
3030
* Or, to trust all proxies that connect
3131
* directly to your server, uncomment this:
3232
*/
33-
# 'proxies' => '*',
33+
// 'proxies' => '*',
3434

3535
/*
3636
* Or, to trust ALL proxies, including those that
3737
* are in a chain of fowarding, uncomment this:
38-
*/
39-
# 'proxies' => '**',
38+
*/
39+
// 'proxies' => '**',
4040

4141
/*
4242
* Default Header Names
@@ -55,5 +55,5 @@
5555
\Illuminate\Http\Request::HEADER_CLIENT_HOST => 'X_FORWARDED_HOST',
5656
\Illuminate\Http\Request::HEADER_CLIENT_PROTO => 'X_FORWARDED_PROTO',
5757
\Illuminate\Http\Request::HEADER_CLIENT_PORT => 'X_FORWARDED_PORT',
58-
]
58+
],
5959
];

0 commit comments

Comments
 (0)