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")) {
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."
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."
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);
87 Setup\Metrics\Metric::STABILITY_CONFIG,
88 Setup\Metrics\Metric::TYPE_TEXT,
90 "The host of the proxy."
93 Setup\Metrics\Metric::STABILITY_CONFIG,
94 Setup\Metrics\Metric::TYPE_TEXT,
96 "The port of the proxy."
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?"
A metric is something we can measure about the system.
getTentativePreconditions(Setup\Environment $environment)
collectFrom(Setup\Environment $environment, Setup\Metrics\Storage $storage)
An environment holds resources to be used in the setup process.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...