add docs for the case

This commit is contained in:
2025-01-11 22:30:54 -05:00
parent 74e811e950
commit 1cb6bedb5c
18 changed files with 398 additions and 422 deletions

View File

@ -2,6 +2,16 @@
use App\Kernel;
if (preg_match("/theme\//", $_SERVER['REQUEST_URI'])) {
print file_get_contents(dirname(__FILE__).$_SERVER['REQUEST_URI']);
exit;
}
if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') {
$_SERVER['HTTPS'] = 'on';
$_SERVER['SERVER_PORT'] = 443;
}
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {