Skip to content

Commit

Permalink
Add proxy detection to make it work behind proxy like traefik
Browse files Browse the repository at this point in the history
  • Loading branch information
semhoun committed Jan 6, 2021
1 parent 3ae7425 commit cdf8257
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"slim/flash": "^0.4.0",
"monolog/monolog": "2.0.0",
"doctrine/orm": "^2",
"symfony/console": "^4.2"
"symfony/console": "^4.2",
"semhoun/proxy-detection-middleware": "^0.5.0"
}
}
2 changes: 2 additions & 0 deletions conf/middleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@
$app->add($container->get('session'));

$app->add(TwigMiddleware::createFromContainer($app));

$app->add(new \RKA\Middleware\ProxyDetection());
};

0 comments on commit cdf8257

Please sign in to comment.