added baseUrl to config

This commit is contained in:
Paul Wilde 2021-08-11 12:23:14 +01:00
parent 6ab3e1f76b
commit c2b818ecb8
2 changed files with 3 additions and 1 deletions

View file

@ -94,7 +94,7 @@ class Responder {
$response->content_type = "ms-json";
$response->content = new MSAutodiscoverJSONResponse();
$response->content->Protocol = "AutodiscoverV1";
$response->content->Url = "https://" . $_SERVER['HTTP_HOST'] . "/Autodiscover/Autodiscover.xml";
$response->content->Url = Core::$Config["BaseURL"] . "/Autodiscover/Autodiscover.xml";
return $response;
}
private function dummy_response(){

View file

@ -6,6 +6,8 @@ Domain = example.com
LogonDomain = example.local
RequireAuthDomain = false
BaseURL = "https://autoconfig.example.com"
; Admin User configuration
; not in use yet
;[AdminUser]