feat: try https
This commit is contained in:
parent
1da3515fe9
commit
41cf1abde7
|
|
@ -24,6 +24,10 @@ class AppServiceProvider extends ServiceProvider
|
||||||
*/
|
*/
|
||||||
public function boot(): void
|
public function boot(): void
|
||||||
{
|
{
|
||||||
|
if($this->app->environment('production')) {
|
||||||
|
\Illuminate\Support\Facades\URL::forceScheme('https');
|
||||||
|
}
|
||||||
|
|
||||||
Scramble::configure()
|
Scramble::configure()
|
||||||
->routes(function (Route $route) {
|
->routes(function (Route $route) {
|
||||||
return Str::startsWith($route->uri, 'api/');
|
return Str::startsWith($route->uri, 'api/');
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- "8000:80" # API dispo sur http://IP_DU_SERVEUR:8000
|
- "8000:80" # API dispo sur http://IP_DU_SERVEUR:8000
|
||||||
environment:
|
environment:
|
||||||
APP_ENV: "${APP_ENV}"
|
APP_ENV: "production"
|
||||||
APP_KEY: "${APP_KEY}"
|
APP_KEY: "${APP_KEY}"
|
||||||
APP_DEBUG: "false"
|
APP_DEBUG: "false"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue