Move Dockerfile from dockerWebsite repo and create docker-compose files

Signed-off-by: Lukas Schaefer <lukas@lschaefer.xyz>
This commit is contained in:
2026-01-11 22:19:23 -05:00
parent b3ff640b07
commit 8108c0c1aa
11 changed files with 258 additions and 121 deletions

View File

@@ -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}

View File

@@ -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"];