Move config into secret folder
This commit is contained in:
parent
185ab839ab
commit
0458ab5e8b
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,5 +1,6 @@
|
|||||||
vendor/
|
vendor/
|
||||||
config.json
|
secret/config.json
|
||||||
|
secret/*.key
|
||||||
composer.phar
|
composer.phar
|
||||||
DOMAIN_OVERRIDE
|
DOMAIN_OVERRIDE
|
||||||
*.log
|
*.log
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?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_errors', 1);
|
||||||
ini_set('display_startup_errors', 1);
|
ini_set('display_startup_errors', 1);
|
||||||
error_reporting(E_ALL);
|
error_reporting(E_ALL);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
// Create an account and apply SSH key
|
// 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){
|
function checkParameters($parameterArray){
|
||||||
$error = false;
|
$error = false;
|
||||||
|
3
secret/README.md
Normal file
3
secret/README.md
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# The Secret Folder
|
||||||
|
|
||||||
|
This MUST NOT be accessible by normal system users or the web server.
|
2
secret/rsa.php
Normal file
2
secret/rsa.php
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
<?php
|
||||||
|
?>
|
Loading…
Reference in New Issue
Block a user