diff --git a/.gitignore b/.gitignore index 0411cca..1ee0f4b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,8 @@ vendor/ composer.lock .env -app/logs/*.log -app/cache/*.html -app/cache/*.gz +app/logs +app/cache TODO.md # Created by https://www.toptal.com/developers/gitignore/api/composer,windows,macos,linux diff --git a/app/logs/index.php b/app/cli/logs_analyser.php similarity index 98% rename from app/logs/index.php rename to app/cli/logs_analyser.php index 39892d7..8e8807e 100644 --- a/app/logs/index.php +++ b/app/cli/logs_analyser.php @@ -26,7 +26,7 @@ if (php_sapi_name() !== 'cli') { } // Caminho para o arquivo de log -$logFile = __DIR__ . '/error.log'; +$logFile = __DIR__ . '/../logs/error.log'; // Verifica se o arquivo de log existe if (!file_exists($logFile)) { diff --git a/default.conf b/default.conf index 134c89e..48aef90 100644 --- a/default.conf +++ b/default.conf @@ -12,7 +12,7 @@ server { add_header X-XSS-Protection "1; mode=block" always; add_header X-Content-Type-Options "nosniff" always; - location ~ ^/(logs|cache|inc|data)/ { + location ~ ^/(logs|cache|inc|data|cli)/ { return 301 /; }