27 new \ilSettingsFactoryExistsObjective()
33 $ilias_ini = $environment->getResource(Setup\Environment::RESOURCE_ILIAS_INI);
36 $storage->storeConfigText(
38 $ilias_ini->readVariable(
"server",
"http_path"),
41 $storage->storeConfigText(
43 $ilias_ini->readVariable(
"https",
"forced"),
47 if ($ilias_ini->readVariable(
"https",
"auto_https_detect_enabled")) {
48 $header_name =
new Setup\Metrics\Metric(
49 Setup\Metrics\Metric::STABILITY_CONFIG,
50 Setup\Metrics\Metric::TYPE_TEXT,
51 $ilias_ini->readVariable(
"https",
"auto_https_detect_header_name"),
52 "The name of the header used for https detection in requests." 54 $header_value =
new Setup\Metrics\Metric(
55 Setup\Metrics\Metric::STABILITY_CONFIG,
56 Setup\Metrics\Metric::TYPE_TEXT,
57 $ilias_ini->readVariable(
"https",
"auto_https_detect_header_value"),
58 "The value in the named header that indicates usage of https in requests." 60 $https_metrics =
new Setup\Metrics\Metric(
61 Setup\Metrics\Metric::STABILITY_CONFIG,
62 Setup\Metrics\Metric::TYPE_COLLECTION,
64 "header_name" => $header_name,
65 "header_value" => $header_value
67 "The properties of a request used for https detection." 69 $storage->store(
"https_autodetection", $https_metrics);
71 $storage->storeConfigBool(
72 "https_autodetection",
74 "Does the server attempt to detect https in incoming requests?" 79 $factory = $environment->getResource(Setup\Environment::RESOURCE_SETTINGS_FACTORY);
86 $host =
new Setup\Metrics\Metric(
87 Setup\Metrics\Metric::STABILITY_CONFIG,
88 Setup\Metrics\Metric::TYPE_TEXT,
90 "The host of the proxy." 92 $port =
new Setup\Metrics\Metric(
93 Setup\Metrics\Metric::STABILITY_CONFIG,
94 Setup\Metrics\Metric::TYPE_TEXT,
96 "The port of the proxy." 98 $proxy =
new Setup\Metrics\Metric(
99 Setup\Metrics\Metric::STABILITY_CONFIG,
100 Setup\Metrics\Metric::TYPE_COLLECTION,
105 "The proxy that is used for outgoing connections." 107 $storage->store(
"proxy", $proxy);
109 $storage->storeConfigBool(
112 "Does the server use a proxy for outgoing connections?"
collectFrom(Setup\Environment $environment, Setup\Metrics\Storage $storage)
getTentativePreconditions(Setup\Environment $environment)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
An environment holds resources to be used in the setup process.