1
0
Fork 0
mirror of synced 2024-06-29 19:50:26 +12:00

localhost domains are now dynamic

This commit is contained in:
eldadfux 2019-09-10 23:42:47 +03:00
parent bd90ba8fc5
commit fa554e3dbc

View file

@ -1,6 +1,6 @@
<?php
global $providers;
global $providers, $request;
use Database\Database;
@ -38,13 +38,13 @@ $collections = [
'$collection' => Database::SYSTEM_COLLECTION_PLATFORMS,
'name' => 'Localhost (SSL)',
'type' => 'web',
'url' => 'https://localhost',
'url' => 'https://' . $request->getServer('HTTP_HOST'),
],
[
'$collection' => Database::SYSTEM_COLLECTION_PLATFORMS,
'name' => 'Localhost (Non-SSL)',
'type' => 'web',
'url' => 'http://localhost',
'url' => 'http://' . $request->getServer('HTTP_HOST'),
],
],
'legalName' => '',