Move config into secret folder

This commit is contained in:
Elizabeth Cray 2023-10-01 20:29:59 -04:00
parent 185ab839ab
commit 0458ab5e8b
6 changed files with 10 additions and 4 deletions

3
.gitignore vendored
View File

@ -1,5 +1,6 @@
vendor/
config.json
secret/config.json
secret/*.key
composer.phar
DOMAIN_OVERRIDE
*.log

View File

@ -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);

View File

@ -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();
?>
?>

3
secret/README.md Normal file
View 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
View File

@ -0,0 +1,2 @@
<?php
?>