fix: support sidataprod path behind traefik
CI/CD Pipeline to Rancher - SIDATA / build-and-deploy (push) Failing after 2m3s
CI/CD Pipeline to Rancher - SIDATA / build-and-deploy (push) Failing after 2m3s
This commit is contained in:
@@ -16,7 +16,7 @@ class Authenticate extends Middleware
|
||||
{
|
||||
if (! $request->expectsJson()) {
|
||||
// Paksa redirect membawa prefix /sidata agar tidak terlempar ke root domain
|
||||
return url('/sidata/login');
|
||||
return redirect()->guest(route('login'));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2,22 +2,13 @@
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Illuminate\Http\Middleware\TrustProxies as Middleware;
|
||||
use Illuminate\Http\Request;
|
||||
use Fideloper\Proxy\TrustProxies as Middleware;
|
||||
|
||||
class TrustProxies extends Middleware
|
||||
{
|
||||
/**
|
||||
* The trusted proxies for this application.
|
||||
*
|
||||
* @var array|string|null
|
||||
*/
|
||||
protected $proxies = '*';
|
||||
|
||||
/**
|
||||
* The headers that should be used to detect proxies.
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
protected $headers = Request::HEADER_X_FORWARDED_ALL;
|
||||
}
|
||||
protected $headers = [
|
||||
\Illuminate\Http\Request::HEADER_X_FORWARDED_ALL,
|
||||
];
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ class RouteServiceProvider extends ServiceProvider
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public const HOME = '/sidata/home';
|
||||
public const HOME = '/home';
|
||||
|
||||
/**
|
||||
* The controller namespace for the application.
|
||||
|
||||
Reference in New Issue
Block a user