Move config into secret folder
This commit is contained in:
parent
185ab839ab
commit
0458ab5e8b
|
@ -1,5 +1,6 @@
|
|||
vendor/
|
||||
config.json
|
||||
secret/config.json
|
||||
secret/*.key
|
||||
composer.phar
|
||||
DOMAIN_OVERRIDE
|
||||
*.log
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
$config = json_decode(file_get_contents("/var/www/usergen/config.json", true));
|
||||
$config = json_decode(file_get_contents("/var/www/usergen/secret/config.json", true));
|
||||
ini_set('display_errors', 1);
|
||||
ini_set('display_startup_errors', 1);
|
||||
error_reporting(E_ALL);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
// Create an account and apply SSH key
|
||||
$config = json_decode(file_get_contents("/var/www/usergen/config.json", true));
|
||||
$config = json_decode(file_get_contents("/var/www/usergen/secret/config.json", true));
|
||||
|
||||
function checkParameters($parameterArray){
|
||||
$error = false;
|
||||
|
@ -75,4 +75,4 @@ if($UserGenCode != "0"){
|
|||
}
|
||||
success();
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
# The Secret Folder
|
||||
|
||||
This MUST NOT be accessible by normal system users or the web server.
|
|
@ -0,0 +1,2 @@
|
|||
<?php
|
||||
?>
|
Loading…
Reference in New Issue