Add support for custom base URL - resolve #114

This commit is contained in:
Bubka
2023-01-20 17:36:15 +01:00
parent 17137b9885
commit 8f6bf85fa8
7 changed files with 20 additions and 6 deletions

View File

@ -22,6 +22,7 @@ class SinglePageController extends Controller
'appConfig' => collect([
'proxyAuth' => config('auth.defaults.guard') === 'reverse-proxy-guard' ? true : false,
'proxyLogoutUrl' => config('2fauth.config.proxyLogoutUrl') ? config('2fauth.config.proxyLogoutUrl') : false,
'subdirectory' => '/' . config('2fauth.config.appSubdirectory') . '/',
])->toJson(),
'lang' => App::currentLocale(),
'isDemoApp' => config('2fauth.config.isDemoApp') ? 'true' : 'false',