mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-24 08:00:12 -06:00
parent
ca2301959c
commit
2e88024bca
@ -1,6 +1,7 @@
|
||||
APP_ENV=production
|
||||
APP_DEBUG=false
|
||||
APP_FORCE_SSL=false
|
||||
APP_FORCE_ROOT=
|
||||
APP_KEY=SomeRandomStringOf32CharsExactly
|
||||
LOG_LEVEL=warning
|
||||
|
||||
|
@ -13,6 +13,7 @@ namespace FireflyIII\Providers;
|
||||
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Log;
|
||||
use URL;
|
||||
|
||||
/**
|
||||
* Class AppServiceProvider
|
||||
@ -28,9 +29,16 @@ class AppServiceProvider extends ServiceProvider
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
|
||||
// force root URL.
|
||||
$forcedUrl = env('APP_FORCE_ROOT', '');
|
||||
if (strlen($forcedUrl) > 0) {
|
||||
URL::forceRootUrl($forcedUrl);
|
||||
}
|
||||
|
||||
// force https urls
|
||||
if (env('APP_FORCE_SSL', false)) {
|
||||
\URL::forceSchema('https');
|
||||
URL::forceSchema('https');
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user