You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!\OC::$CLI && !str_starts_with($generatedUrl, 'https://')) {
67
-
return SetupResult::warning(
68
-
$this->l10n->t('You are accessing your instance over a secure connection, however your instance is generating insecure URLs. This most likely means that you are behind a reverse proxy and the overwrite config variables are not set correctly.'),
/* We were called from CLI so we can't check this */
74
-
return SetupResult::info($this->l10n->t('Your URL generation could not be checked from CLI mode.'));
75
-
} else {
76
-
return SetupResult::success($this->l10n->t('You are accessing your instance over a secure connection, and your instance is generating secure URLs.'));
66
+
if (!str_starts_with($generatedUrl, 'https://')) {
67
+
if (!\OC::$CLI) {
68
+
return SetupResult::warning(
69
+
$this->l10n->t('You are accessing your instance over a secure connection, however your instance is generating insecure URLs. This likely means that your instance is behind a reverse proxy and the Nextcloud `overwrite*` config values are not set correctly.'),
/* We were called from CLI so we can't be 100% sure which scenario is applicable */
73
+
} else {
74
+
return SetupResult::info(
75
+
$this->l10n->t('Your instance is generating insecure URLs. If you access your instance over HTTPS, this likely means that your instance is behind a reverse proxy and the Nextcloud `overwrite*` config values are not set correctly.'),
0 commit comments