forked from urvishpatelce/lxd-app
Merge branch 'urvishpatelce-main'
This commit is contained in:
@ -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