Force https
All checks were successful
Push image to registry / build-image (push) Successful in 3m50s

This commit is contained in:
2025-02-08 10:04:40 +01:00
parent 99f866fbef
commit 2142ea9cc2
3 changed files with 6 additions and 4 deletions

View File

@ -69,4 +69,3 @@ VITE_APP_URL="${APP_URL}"
DUSK_DRIVER_URL="http://undetected-chromedriver:4444"
DUSK_START_MAXIMIZED=true
ASSET_URL=https://datbrowser.matthiasg.dev

View File

@ -3,6 +3,7 @@
namespace App\Providers;
use App\Browser\BrowserJob;
use Illuminate\Routing\UrlGenerator;
use Illuminate\Support\Facades\Vite;
use Illuminate\Support\ServiceProvider;
@ -19,8 +20,12 @@ class AppServiceProvider extends ServiceProvider
/**
* Bootstrap any application services.
*/
public function boot(): void
public function boot(UrlGenerator $url): void
{
Vite::prefetch(concurrency: 3);
if (env('APP_ENV') !== 'local') { //so you can work on it locally
$url->forceScheme('https');
}
}
}

View File

@ -4,8 +4,6 @@ services:
restart: unless-stopped
ports:
- 80:80
environment:
APP_URL: datbrowser.matthiasg.dev
volumes:
- browserDownloads:/app/Browser/downloads
- browserScreenshots:/app/Browser/screenshots