Challenge update, compatible new archi and less frustrating
This commit is contained in:
parent
f495725c81
commit
fabc56ae62
@ -4,19 +4,24 @@ services:
|
|||||||
web:
|
web:
|
||||||
image: nginx:latest
|
image: nginx:latest
|
||||||
ports:
|
ports:
|
||||||
- "8080:80"
|
- "80:80"
|
||||||
volumes:
|
volumes:
|
||||||
- ./webroot:/webroot
|
- ./webroot:/webroot:ro
|
||||||
- ./resources/nginx/default.conf:/etc/nginx/conf.d/default.conf
|
- ./resources/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
|
||||||
- ./resources/nginx/nginx.conf:/etc/nginx/nginx.conf
|
- ./resources/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
|
||||||
- ./log/nginx:/var/log/nginx
|
networks:
|
||||||
links:
|
- backend
|
||||||
- php
|
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
php:
|
php:
|
||||||
build: ./php/
|
build: ./php/
|
||||||
volumes:
|
volumes:
|
||||||
- ./webroot:/webroot
|
- ./webroot:/webroot:ro
|
||||||
- ./resources/php/custom.ini:/usr/local/etc/php/conf.d/custom.ini
|
- ./resources/php/custom.ini:/usr/local/etc/php/conf.d/custom.ini:ro
|
||||||
|
networks:
|
||||||
|
- backend
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
|
networks:
|
||||||
|
backend:
|
||||||
|
driver: bridge
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM php:7.2-fpm
|
FROM php:7.3-fpm
|
||||||
|
|
||||||
MAINTAINER Aymeric Sorek "aymericsorek@protonmail.com"
|
MAINTAINER Aymeric Sorek "aymericsorek@protonmail.com"
|
||||||
|
|
||||||
|
@ -4,9 +4,6 @@ server {
|
|||||||
index index.php;
|
index index.php;
|
||||||
server_name localhost;
|
server_name localhost;
|
||||||
|
|
||||||
error_log /var/log/nginx/error.log;
|
|
||||||
access_log /var/log/nginx/access.log;
|
|
||||||
|
|
||||||
root /webroot;
|
root /webroot;
|
||||||
|
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
|
@ -23,22 +23,6 @@ http {
|
|||||||
include /etc/nginx/mime.types;
|
include /etc/nginx/mime.types;
|
||||||
default_type application/octet-stream;
|
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 Settings
|
||||||
##
|
##
|
||||||
|
@ -2,7 +2,7 @@ expose_php = Off
|
|||||||
error_reporting = E_ALL
|
error_reporting = E_ALL
|
||||||
display_errors = Off
|
display_errors = Off
|
||||||
display_startup_errors = Off
|
display_startup_errors = Off
|
||||||
log_errors = On
|
log_errors = Off
|
||||||
error_log = /var/log/php/php_error.log
|
error_log = /var/log/php/php_error.log
|
||||||
ignore_repeated_errors = Off
|
ignore_repeated_errors = Off
|
||||||
allow_url_fopen = Off
|
allow_url_fopen = Off
|
||||||
|
@ -33,14 +33,14 @@
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
} else {
|
} else {
|
||||||
$username = htmlspecialchars($_POST['username']);
|
$username = strtolower(htmlspecialchars($_POST['username']));
|
||||||
|
|
||||||
if ($username === 'admin') {
|
if ($username === 'admin' || $username === 'root' || $username === 'administrator') {
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="sub">
|
<div class="sub">
|
||||||
<h2 class="blue">Hello admin</h2>
|
<h2 class="blue">Hello admin</h2>
|
||||||
<h3 class="grey">IMTLD{Y0u_H4v3_t0_st4rT_s0m3Wh3r3}</h3>
|
<h3 class="grey">SPACE{y0u_H4v3_t0_St4rt_S0m3Wh3r3}</h3>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
|
Loading…
Reference in New Issue
Block a user