Skip to content
Snippets Groups Projects
Commit c2a4a941 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

do not force https for onion domain

parent 7141efad
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,7 @@ namespace App\Providers;
use App\Localization;
use Illuminate\Support\ServiceProvider;
use Request;
class AppServiceProvider extends ServiceProvider
{
......@@ -13,7 +14,7 @@ class AppServiceProvider extends ServiceProvider
public function boot(): void
{
config(["app.locale" => "default"]);
if (app()->environment("production") || app()->environment("development")) {
if (Request::getHost() !== "metagerv65pwclop2rsfzg4jwowpavpwd6grhhlvdgsswvo6ii4akgyd.onion" && (app()->environment("production") || app()->environment("development"))) {
\URL::forceScheme("https");
}
\Prometheus\Storage\Redis::setDefaultOptions(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment