mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-03 11:21:01 +01:00
Port a few various options.
Summary: - remarkup.enable-embedded-youtube - controller.oauth-registration - aphront.default-application-configuration-class - cache.enable-deflate Test Plan: Saw the new options in the web interface. Reviewers: epriestley, chad, btrahan Reviewed By: epriestley CC: aran, Korvin Maniphest Tasks: T2255 Differential Revision: https://secure.phabricator.com/D4424
This commit is contained in:
parent
d67b42dcc0
commit
0c6e5f86bc
3 changed files with 40 additions and 0 deletions
|
@ -140,6 +140,19 @@ final class PhabricatorDeveloperConfigOptions
|
||||||
"Minify static resources by removing whitespace and comments. You ".
|
"Minify static resources by removing whitespace and comments. You ".
|
||||||
"should enable this in production, but disable it in ".
|
"should enable this in production, but disable it in ".
|
||||||
"development.")),
|
"development.")),
|
||||||
|
$this->newOption('cache.enable-deflate', 'bool', true)
|
||||||
|
->setBoolOptions(
|
||||||
|
array(
|
||||||
|
pht("Enable deflate compression"),
|
||||||
|
pht("Disable deflate compression"),
|
||||||
|
))
|
||||||
|
->setSummary(
|
||||||
|
pht("Toggle gzdeflate()-based compression for some caches."))
|
||||||
|
->setDescription(
|
||||||
|
pht(
|
||||||
|
"Set this to false to disable the use of gzdeflate()-based ".
|
||||||
|
"compression in some caches. This may give you less performant ".
|
||||||
|
"(but more debuggable) caching.")),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,6 +37,19 @@ final class PhabricatorExtendingPhabricatorConfigOptions
|
||||||
"Path to custom celerity resource map relative to ".
|
"Path to custom celerity resource map relative to ".
|
||||||
"'phabricator/src'. See also `scripts/celerity_mapper.php`."))
|
"'phabricator/src'. See also `scripts/celerity_mapper.php`."))
|
||||||
->addExample('local/my_celerity_map.php', pht('Valid Setting')),
|
->addExample('local/my_celerity_map.php', pht('Valid Setting')),
|
||||||
|
$this->newOption(
|
||||||
|
'aphront.default-application-configuration-class',
|
||||||
|
'class',
|
||||||
|
'AphrontDefaultApplicationConfiguration')
|
||||||
|
->setBaseClass('AphrontApplicationConfiguration')
|
||||||
|
// TODO: This could probably use some better documentation.
|
||||||
|
->setDescription(pht("Application configuration class.")),
|
||||||
|
$this->newOption(
|
||||||
|
'controller.oauth-registration',
|
||||||
|
'class',
|
||||||
|
'PhabricatorOAuthDefaultRegistrationController')
|
||||||
|
->setBaseClass('PhabricatorOAuthRegistrationController')
|
||||||
|
->setDescription(pht("OAuth registration controller.")),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -133,6 +133,20 @@ final class PhabricatorSecurityConfigOptions
|
||||||
"to something else and rebuild the Celerity map to break user ".
|
"to something else and rebuild the Celerity map to break user ".
|
||||||
"caches. Unless you are doing Celerity development, it is ".
|
"caches. Unless you are doing Celerity development, it is ".
|
||||||
"exceptionally unlikely that you need to modify this.")),
|
"exceptionally unlikely that you need to modify this.")),
|
||||||
|
$this->newOption('remarkup.enable-embedded-youtube', 'bool', false)
|
||||||
|
->setBoolOptions(
|
||||||
|
array(
|
||||||
|
pht("Embed YouTube videos"),
|
||||||
|
pht("Don't embed YouTube videos"),
|
||||||
|
))
|
||||||
|
->setSummary(
|
||||||
|
pht("Determines whether or not YouTube videos get embedded."))
|
||||||
|
->setDescription(
|
||||||
|
pht(
|
||||||
|
"If you enable this, linked YouTube videos will be embeded ".
|
||||||
|
"inline. This has mild security implications (you'll leak ".
|
||||||
|
"referrers to YouTube) and is pretty silly (but sort of ".
|
||||||
|
"awesome).")),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue