diff --git a/.env.example b/.env.example index ca77aa0..8489a48 100644 --- a/.env.example +++ b/.env.example @@ -16,7 +16,8 @@ APP_MAINTENANCE_STORE=database BCRYPT_ROUNDS=12 LOG_CHANNEL=stack -LOG_STACK=single +LOG_STACK=daily +LOG_DAILY_DAYS=14 LOG_DEPRECATIONS_CHANNEL=null LOG_LEVEL=debug diff --git a/bootstrap/app.php b/bootstrap/app.php index 79db09d..00ffe4f 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -13,6 +13,7 @@ return Application::configure(basePath: dirname(__DIR__)) health: '/up', ) ->withMiddleware(function (Middleware $middleware) { + $middleware->trustProxies(at: ['*']); $middleware->alias([ 'admin' => \App\Http\Middleware\EnsureAdmin::class, ]); diff --git a/docker-compose.yml b/docker-compose.yml index dc877de..b38ad9b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -159,6 +159,8 @@ services: restart: unless-stopped networks: - cfdive-network + volumes: + - redis-data:/data healthcheck: test: ["CMD", "redis-cli", "ping"] interval: 30s @@ -205,3 +207,5 @@ networks: volumes: mysql-data: driver: local + redis-data: + driver: local