Browse Source

gate phpinfo.php behind an environment variable so it doesn't get shown to the public

master
Adrian Malacoda 3 months ago
parent
commit
5f68d09c72
2 changed files with 9 additions and 1 deletions
  1. 8
    1
      application/phpinfo.php
  2. 1
    0
      docker-compose.yml

+ 8
- 1
application/phpinfo.php View File

@@ -1 +1,8 @@
1
-<?php phpinfo(); ?>
1
+<?php
2
+if (empty(getenv("GCL_DEV")))
3
+{
4
+    die();  
5
+}
6
+
7
+phpinfo();
8
+?>

+ 1
- 0
docker-compose.yml View File

@@ -31,3 +31,4 @@ services:
31 31
             GCL_SMTP_HOST: mail.gandi.net
32 32
             GCL_SMTP_USER: no-reply@monarch-pass.net
33 33
             #GCL_SMTP_PASSWORD: smtp-password-here
34
+            GCL_DEV: true

Loading…
Cancel
Save