remove code
This commit is contained in:
		@@ -2,13 +2,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
namespace App\Providers;
 | 
					namespace App\Providers;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
use App\Jobs\CoolifyTask;
 | 
					 | 
				
			||||||
use App\Models\InstanceSettings;
 | 
					 | 
				
			||||||
use Illuminate\Queue\Events\JobProcessed;
 | 
					 | 
				
			||||||
use Illuminate\Support\Facades\Queue;
 | 
					 | 
				
			||||||
use Illuminate\Support\Facades\URL;
 | 
					 | 
				
			||||||
use Illuminate\Support\ServiceProvider;
 | 
					use Illuminate\Support\ServiceProvider;
 | 
				
			||||||
use Illuminate\Support\Str;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
class AppServiceProvider extends ServiceProvider
 | 
					class AppServiceProvider extends ServiceProvider
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
@@ -24,15 +18,5 @@ class AppServiceProvider extends ServiceProvider
 | 
				
			|||||||
     */
 | 
					     */
 | 
				
			||||||
    public function boot(): void
 | 
					    public function boot(): void
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        // if ($this->app->environment('production')) {
 | 
					 | 
				
			||||||
        //     try {
 | 
					 | 
				
			||||||
        //         $settings = InstanceSettings::first();
 | 
					 | 
				
			||||||
        //         if (Str::startsWith($settings->fqdn, 'https')) {
 | 
					 | 
				
			||||||
        //             URL::forceScheme('https');
 | 
					 | 
				
			||||||
        //         }
 | 
					 | 
				
			||||||
        //     } catch (\Exception $e) {
 | 
					 | 
				
			||||||
        //         // do nothing
 | 
					 | 
				
			||||||
        //     }
 | 
					 | 
				
			||||||
        // }
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,16 +1,11 @@
 | 
				
			|||||||
<?php
 | 
					<?php
 | 
				
			||||||
 | 
					
 | 
				
			||||||
use App\Models\InstanceSettings;
 | 
					 | 
				
			||||||
use Illuminate\Database\QueryException;
 | 
					use Illuminate\Database\QueryException;
 | 
				
			||||||
use Illuminate\Support\Facades\Http;
 | 
					use Illuminate\Support\Facades\Http;
 | 
				
			||||||
use Illuminate\Support\Facades\Route;
 | 
					use Illuminate\Support\Facades\Route;
 | 
				
			||||||
use Visus\Cuid2\Cuid2;
 | 
					use Visus\Cuid2\Cuid2;
 | 
				
			||||||
use Illuminate\Support\Str;
 | 
					use Illuminate\Support\Str;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function is_https()
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    return Str::of(InstanceSettings::get()->fqdn)->startsWith('https');
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
function general_error_handler(\Throwable $e, $that = null, $isJson = false)
 | 
					function general_error_handler(\Throwable $e, $that = null, $isJson = false)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    try {
 | 
					    try {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6,12 +6,6 @@
 | 
				
			|||||||
    <meta name="viewport" content="width=device-width, initial-scale=1">
 | 
					    <meta name="viewport" content="width=device-width, initial-scale=1">
 | 
				
			||||||
    <link rel="preconnect" href="https://api.fonts.coollabs.io" crossorigin>
 | 
					    <link rel="preconnect" href="https://api.fonts.coollabs.io" crossorigin>
 | 
				
			||||||
    <link href="https://api.fonts.coollabs.io/css2?family=Inter&display=swap" rel="stylesheet">
 | 
					    <link href="https://api.fonts.coollabs.io/css2?family=Inter&display=swap" rel="stylesheet">
 | 
				
			||||||
    {{-- {{ dd(request()->host()) }}
 | 
					 | 
				
			||||||
    @if (str_starts_with(request()->schemeAndHttpHost(), 'https'))
 | 
					 | 
				
			||||||
        <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
 | 
					 | 
				
			||||||
    @else
 | 
					 | 
				
			||||||
        http
 | 
					 | 
				
			||||||
    @endif --}}
 | 
					 | 
				
			||||||
    @env('local')
 | 
					    @env('local')
 | 
				
			||||||
    <title>Coolify - localhost</title>
 | 
					    <title>Coolify - localhost</title>
 | 
				
			||||||
    @endenv
 | 
					    @endenv
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -25,11 +25,6 @@
 | 
				
			|||||||
</head>
 | 
					</head>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<body>
 | 
					<body>
 | 
				
			||||||
    {{-- @if (is_https())
 | 
					 | 
				
			||||||
        <script>
 | 
					 | 
				
			||||||
            console.log('asd')
 | 
					 | 
				
			||||||
        </script>
 | 
					 | 
				
			||||||
    @else --}}
 | 
					 | 
				
			||||||
    @livewireScripts
 | 
					    @livewireScripts
 | 
				
			||||||
    @auth
 | 
					    @auth
 | 
				
			||||||
        <x-navbar />
 | 
					        <x-navbar />
 | 
				
			||||||
@@ -65,8 +60,6 @@
 | 
				
			|||||||
            })
 | 
					            })
 | 
				
			||||||
        </script>
 | 
					        </script>
 | 
				
			||||||
    @endauth
 | 
					    @endauth
 | 
				
			||||||
    {{-- @endif --}}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
</body>
 | 
					</body>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
</html>
 | 
					</html>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user