Skip to content

Commit 506d6c9

Browse files
authored
Merge pull request #29 from soukbrasil/main
Flag to force https on endpoint
2 parents f1dba07 + e765b74 commit 506d6c9

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

config/artisan-gui.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,16 @@
4949
*/
5050
'local' => true,
5151

52+
/*
53+
|--------------------------------------------------------------------------
54+
| Force HTTPS
55+
|--------------------------------------------------------------------------
56+
|
57+
| Flag to force https on endpoint
58+
|
59+
*/
60+
'force-https' => env('FORCE_HTTPS_ARTISAN_GUI', false),
61+
5262
/*
5363
|--------------------------------------------------------------------------
5464
| List of command permissions

resources/views/index.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<body class="bg-gray-100 font-mono">
1414

1515
<div id="app">
16-
<app home="{{ url(config('artisan-gui.home', '/')) }}" endpoint="{{ route('gui.index') }}" />
16+
<app home="{{ url(config('artisan-gui.home', '/')) }}" endpoint="{{ config('artisan-gui.force-https', false) ? secure_url(URL::route('gui.index', [], false)) : route('gui.index') }}" />
1717
</div>
1818

1919
@include('gui::partials.scripts')

0 commit comments

Comments
 (0)