Move Dockerfile from dockerWebsite repo and create docker-compose files
Signed-off-by: Lukas Schaefer <lukas@lschaefer.xyz>
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
#REMOVE LINE 1 WHEN DONE - please fill out all details for the json file as a config and rename to config.json
|
||||
{ "api": "youtube api key", "database": { "username": "", "name": "", "password": "", "backupLocation": Where the backups should be stored, "backupLength" : how long the backups should be stored }, "developer": true/false Reminder that there should be no quotation marks(This should be a boolean), "throttle":the amount of login requests allowed per time period, "throttleTime":The number of seconds allowed for the throttle time period, "fanStart" : Tells the pi when to start the fan, "fanStop": Tells the pi when to stop the fan, "turnstileSecret": A cloudflare turnstile key for login security, "turnstileClient" : A cloudflare turnstile key for login security, "TMDBApiKey": Api Key for themoviedb.org}
|
||||
@@ -82,12 +82,12 @@ function sanitize($value) # Used to sanitize a value very strictly
|
||||
}
|
||||
function dbConnect()
|
||||
{ // Is used to connect to the database
|
||||
$SERVERLOCATION = "localhost";
|
||||
if (!file_exists($_SERVER["DOCUMENT_ROOT"] . "/config.json")) {
|
||||
exit();
|
||||
}
|
||||
$jsonInfo = file_get_contents($_SERVER["DOCUMENT_ROOT"] . "/config.json");
|
||||
$jsonData = json_decode($jsonInfo, true);
|
||||
$SERVERLOCATION = $jsonData["database"]["host"];
|
||||
$DATA_USERNAME = $jsonData["database"]["username"];
|
||||
$DATABASENAME = $jsonData["database"]["name"];
|
||||
$PASSWORD = $jsonData["database"]["password"];
|
||||
|
||||
Reference in New Issue
Block a user