Functionnal chall
This commit is contained in:
18
resources/nginx/default.conf
Normal file
18
resources/nginx/default.conf
Normal file
@ -0,0 +1,18 @@
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
index index.php;
|
||||
server_name localhost;
|
||||
|
||||
error_log /var/log/nginx/error.log;
|
||||
access_log /var/log/nginx/access.log;
|
||||
|
||||
root /webroot;
|
||||
|
||||
location ~ \.php$ {
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param REDIRECT_STATUS 200;
|
||||
fastcgi_pass php:9000;
|
||||
}
|
||||
}
|
55
resources/nginx/nginx.conf
Normal file
55
resources/nginx/nginx.conf
Normal file
@ -0,0 +1,55 @@
|
||||
user www-data;
|
||||
pid /run/nginx.pid;
|
||||
include /etc/nginx/modules-enabled/*.conf;
|
||||
|
||||
events {
|
||||
worker_connections 768;
|
||||
# multi_accept on;
|
||||
}
|
||||
|
||||
http {
|
||||
|
||||
##
|
||||
# Basic Settings
|
||||
##
|
||||
|
||||
sendfile on;
|
||||
tcp_nopush on;
|
||||
tcp_nodelay on;
|
||||
keepalive_timeout 65;
|
||||
types_hash_max_size 2048;
|
||||
server_tokens off;
|
||||
|
||||
include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
##
|
||||
# Headers
|
||||
##
|
||||
|
||||
add_header X-Frame-Options DENY;
|
||||
add_header X-Content-Type-Options nosniff;
|
||||
add_header X-XSS-Protection "1; mode=block";
|
||||
|
||||
|
||||
##
|
||||
# Logging Settings
|
||||
##
|
||||
|
||||
access_log /var/log/nginx/access.log;
|
||||
error_log /var/log/nginx/error.log;
|
||||
|
||||
##
|
||||
# Gzip Settings
|
||||
##
|
||||
|
||||
gzip off; # To avoid BREACH Attack
|
||||
gzip_disable "msie6";
|
||||
|
||||
|
||||
##
|
||||
# Virtual Host Configs
|
||||
##
|
||||
|
||||
include /etc/nginx/conf.d/*.conf;
|
||||
}
|
14
resources/php/custom.ini
Normal file
14
resources/php/custom.ini
Normal file
@ -0,0 +1,14 @@
|
||||
expose_php = Off
|
||||
error_reporting = E_ALL
|
||||
display_errors = Off
|
||||
display_startup_errors = Off
|
||||
log_errors = On
|
||||
error_log = /var/log/php/php_error.log
|
||||
ignore_repeated_errors = Off
|
||||
allow_url_fopen = Off
|
||||
allow_url_include = Off
|
||||
file_uploads = Off
|
||||
disable_functions = system, exec, shell_exec, passthru, phpinfo, show_source, popen, proc_open
|
||||
disable_functions = fopen_with_path, dbmopen, dbase_open, putenv, move_uploaded_file
|
||||
disable_functions = chdir, mkdir, rmdir, chmod, rename
|
||||
disable_functions = filepro, filepro_rowcount, filepro_retrieve, posix_mkfifo
|
Reference in New Issue
Block a user