diff --git a/README.md b/README.md index 7478417..5657f4a 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ Simpler than the mechanism of a spoon. -Local testing: `php -S localhost:8000` +Local testing: `php -S localhost:8000 -t app/public` Docker run: `docker-compose up` diff --git a/app/public/css/custom.css b/app/public/css/custom.css index 4933d9f..7ebd0ce 100644 --- a/app/public/css/custom.css +++ b/app/public/css/custom.css @@ -15,7 +15,7 @@ footer { } textarea { - height: 88vh; + height: 93vh; font-family: monospace; } diff --git a/app/public/index.php b/app/public/index.php index 707afcc..8efe402 100644 --- a/app/public/index.php +++ b/app/public/index.php @@ -150,16 +150,14 @@ if ($plain) { Reset Help +
+

Contact me via email or twitter. Made with pure PHP and Pico.css. Source code.

- - diff --git a/docker/nginx/default.conf b/docker/nginx/default.conf index a611cd2..fed779b 100644 --- a/docker/nginx/default.conf +++ b/docker/nginx/default.conf @@ -1,3 +1,6 @@ + +limit_req_zone $binary_remote_addr zone=rlimit:10m rate=5r/s; + server { index index.html index.php; #server_name phpfpm.local; @@ -5,6 +8,8 @@ server { access_log /var/log/nginx/access.log; root /var/www/html/public; + limit_req zone=rlimit; + location ~ \.php$ { try_files $uri =404; fastcgi_split_path_info ^(.+\.php)(/.+)$;