feat: try https

This commit is contained in:
Leon 2025-12-18 10:52:34 +01:00
parent 1da3515fe9
commit 41cf1abde7
2 changed files with 5 additions and 1 deletions

View File

@ -24,6 +24,10 @@ class AppServiceProvider extends ServiceProvider
*/
public function boot(): void
{
if($this->app->environment('production')) {
\Illuminate\Support\Facades\URL::forceScheme('https');
}
Scramble::configure()
->routes(function (Route $route) {
return Str::startsWith($route->uri, 'api/');

View File

@ -9,7 +9,7 @@ services:
ports:
- "8000:80" # API dispo sur http://IP_DU_SERVEUR:8000
environment:
APP_ENV: "${APP_ENV}"
APP_ENV: "production"
APP_KEY: "${APP_KEY}"
APP_DEBUG: "false"