Skip to content

Commit

Permalink
chore: update package versions and improve proxy middleware configura…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
francoism90 committed Dec 17, 2024
1 parent 3961b32 commit fec0d6e
Show file tree
Hide file tree
Showing 5 changed files with 219 additions and 209 deletions.
9 changes: 8 additions & 1 deletion bootstrap/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
use Illuminate\Foundation\Application;
use Illuminate\Foundation\Configuration\Exceptions;
use Illuminate\Foundation\Configuration\Middleware;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
use Spatie\PrefixedIds\Exceptions\NoPrefixedModelFound;

Expand All @@ -24,7 +25,13 @@
},
)
->withMiddleware(function (Middleware $middleware) {
$middleware->trustProxies(at: '*');
$middleware->trustProxies(at: '*', headers: Request::HEADER_X_FORWARDED_FOR |
Request::HEADER_X_FORWARDED_HOST |
Request::HEADER_X_FORWARDED_PORT |
Request::HEADER_X_FORWARDED_PROTO |
Request::HEADER_X_FORWARDED_AWS_ELB
);

$middleware->throttleWithRedis();
$middleware->statefulApi();
$middleware->redirectGuestsTo('/login');
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@
"spatie/laravel-google-fonts": "^1.4.1",
"spatie/laravel-html": "^3.11.1",
"spatie/laravel-medialibrary": "^11.11.0",
"spatie/laravel-model-states": "^2.8.0",
"spatie/laravel-model-states": "^2.9.0",
"spatie/laravel-permission": "^6.10.1",
"spatie/laravel-prefixed-ids": "^1.4.0",
"spatie/laravel-responsecache": "^7.6.3",
"spatie/laravel-sluggable": "^3.7.0",
"spatie/laravel-tags": "^4.7.2",
"spatie/php-structure-discoverer": "^2.2.0"
"spatie/php-structure-discoverer": "^2.2.1"
},
"require-dev": {
"barryvdh/laravel-ide-helper": "^3.2.2",
Expand Down
58 changes: 29 additions & 29 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@
"format": "npx prettier . --write"
},
"devDependencies": {
"@eslint/js": "^9.16.0",
"@eslint/js": "^9.17.0",
"@tailwindcss/forms": "^0.5.9",
"@tailwindcss/typography": "^0.5.15",
"@vitejs/plugin-basic-ssl": "^1.2.0",
"autoprefixer": "^10.4.20",
"axios": "^1.7.9",
"chokidar": "^4.0.1",
"chokidar": "^4.0.2",
"concurrently": "^9.1.0",
"cssnano": "^7.0.6",
"eslint": "^9.16",
"eslint": "^9.17",
"globals": "^15.13.0",
"laravel-echo": "^1.17.1",
"laravel-vite-plugin": "^1.1.1",
Expand All @@ -29,7 +29,7 @@
"prettier-plugin-tailwindcss": "^0.6.9",
"pusher-js": "^8.4.0-rc2",
"shaka-player": "^4.12.5",
"stylelint": "^16.11.0",
"stylelint": "^16.12.0",
"stylelint-config-standard-scss": "^14.0.0",
"tailwindcss": "^3.4.16",
"vite": "^6.0.3",
Expand Down
Loading

0 comments on commit fec0d6e

Please sign in to comment.