Force https
All checks were successful
Push image to registry / build-image (push) Successful in 3m50s
All checks were successful
Push image to registry / build-image (push) Successful in 3m50s
This commit is contained in:
@ -69,4 +69,3 @@ VITE_APP_URL="${APP_URL}"
|
|||||||
DUSK_DRIVER_URL="http://undetected-chromedriver:4444"
|
DUSK_DRIVER_URL="http://undetected-chromedriver:4444"
|
||||||
DUSK_START_MAXIMIZED=true
|
DUSK_START_MAXIMIZED=true
|
||||||
|
|
||||||
ASSET_URL=https://datbrowser.matthiasg.dev
|
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
namespace App\Providers;
|
namespace App\Providers;
|
||||||
|
|
||||||
use App\Browser\BrowserJob;
|
use App\Browser\BrowserJob;
|
||||||
|
use Illuminate\Routing\UrlGenerator;
|
||||||
use Illuminate\Support\Facades\Vite;
|
use Illuminate\Support\Facades\Vite;
|
||||||
use Illuminate\Support\ServiceProvider;
|
use Illuminate\Support\ServiceProvider;
|
||||||
|
|
||||||
@ -19,8 +20,12 @@ class AppServiceProvider extends ServiceProvider
|
|||||||
/**
|
/**
|
||||||
* Bootstrap any application services.
|
* Bootstrap any application services.
|
||||||
*/
|
*/
|
||||||
public function boot(): void
|
public function boot(UrlGenerator $url): void
|
||||||
{
|
{
|
||||||
Vite::prefetch(concurrency: 3);
|
Vite::prefetch(concurrency: 3);
|
||||||
|
|
||||||
|
if (env('APP_ENV') !== 'local') { //so you can work on it locally
|
||||||
|
$url->forceScheme('https');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,8 +4,6 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- 80:80
|
- 80:80
|
||||||
environment:
|
|
||||||
APP_URL: datbrowser.matthiasg.dev
|
|
||||||
volumes:
|
volumes:
|
||||||
- browserDownloads:/app/Browser/downloads
|
- browserDownloads:/app/Browser/downloads
|
||||||
- browserScreenshots:/app/Browser/screenshots
|
- browserScreenshots:/app/Browser/screenshots
|
||||||
|
Reference in New Issue
Block a user