Merge branch 'urvishpatelce-main'
This commit is contained in:
commit
4ad0dfd5bc
444 files changed
+54536
-311
No files matched your search
@@ -26,7 +26,7 @@ $container = $config[$host] ?? null;
|
||||
$lxd = new LxdService();
|
||||
|
||||
// === Helper URLs ===
|
||||
$redirectBase = parseUrl("$host/app?auth=ok&redirect=" . urlencode(getFullUrl()));
|
||||
$redirectBase = parseUrl("$host/app");
|
||||
$waitingPage = parseUrl("$host/app/waiting?name=$container&redirect=" . urlencode(getFullUrl()));
|
||||
// === If container is missing or invalid ===
|
||||
if (!$container || !$lxd->containerExists($container)) {
|
||||
@@ -69,7 +69,8 @@ function proxy(string $name, string $targetUrl): void {
|
||||
$_SERVER['HTTP_PROXY_TARGET_URL'] = $targetUrl;
|
||||
|
||||
$responseCode = Proxy::run();
|
||||
writeLog($name, $targetUrl);
|
||||
touch($_ENV['STATEDIR']."/".$name);
|
||||
|
||||
}
|
||||
|
||||
function getFullUrl(): string {
|
||||
|
||||
Reference in new issue
Block a user