Compare commits
3 Commits
45d4af2b1f
...
b6fd907373
Author | SHA1 | Date | |
---|---|---|---|
b6fd907373 | |||
1770795f16 | |||
f45a186b42 |
@ -39,7 +39,7 @@ http {
|
||||
expires 7d;
|
||||
|
||||
# Serve the file directly from disk
|
||||
try_files $uri $uri/;
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
}
|
||||
}
|
@ -13,7 +13,7 @@ fi
|
||||
echo "Setting permissions for upload script"
|
||||
chmod 777 /var/www/html/upload.php
|
||||
|
||||
# Start php dep
|
||||
# Start php dependencies
|
||||
echo "Starting PHP"
|
||||
service php8.1-fpm start
|
||||
|
||||
|
@ -1,5 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* DO NOT TOUCH!!!!!!!!
|
||||
*/
|
||||
$before = microtime(true); // Start time of the script
|
||||
$defaultSecretKey = "set me"; // The default secret key
|
||||
header('Content-type:application/json;charset=utf-8'); // Set the response content type to JSON
|
||||
|
||||
/**
|
||||
@ -76,7 +81,7 @@ try {
|
||||
}
|
||||
|
||||
// Check if the secret is the default one, and if so, tell the user to change it
|
||||
if ($secret == "set me") {
|
||||
if ($secret == $defaultSecretKey) {
|
||||
returnJson(array(
|
||||
'status' => 'ERROR',
|
||||
'url' => 'You need to set your upload secret in the configuration section of the upload.php file',
|
||||
|
Loading…
Reference in New Issue
Block a user