-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.php
22 lines (17 loc) · 809 Bytes
/
init.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
// Security Settings & Security Header Definitions
ini_set('expose_php', 'off');
header_remove("X-Powered-By");
header("strict-transport-security: max-age=600");
header('X-Frame-Options: SAMEORIGIN');
header('X-XSS-Protection: 1');
header('X-Content-Type-Options: nosniff');
// Error Reporting
ini_set('display_errors', 1);
ini_set('error_reporting', 'E_ALL');
// Log file settings
// Add these settings to your current init file and change them accordingly
define("LOG_ROOT", getcwd() . "/logs/"); // Absolute path to your log directory
define("LOG_SERVICE", "logger"); // Name of your Application Service
define("LOG_FILENAME", LOG_SERVICE . "-logstash.log"); // Log Filename
define("LOG_LEVEL", "DEBUG"); // Minimum Logging Level