'mysql_foreign_keys' => false), // if set, enables experimental foreign key support on MySQL
'fix' =>
array('fancyurls' => true, // makes sure aliases in WebFinger etc. are not f'd by index.php/ URLs
+ 'legacy_http' => false, // set this to true if you have upgraded your site from http=>https
),
'syslog' =>
array('appname' => 'statusnet', # for syslog
const OAUTH_REQUEST_TOKEN_REL = 'http://apinamespace.org/oauth/request_token';
const OAUTH_AUTHORIZE_REL = 'http://apinamespace.org/oauth/authorize';
- public $http_alias = false;
-
- public function initialize()
- {
- common_config_set('webfinger', 'http_alias', $this->http_alias);
- }
-
public function onRouterInitialized($m)
{
$m->connect('.well-known/host-meta', array('action' => 'hostmeta'));
// (because remote sites look for it) verify that they are still
// the same identity as they were on HTTP. Should NOT be used if
// you've run HTTPS all the time!
- if (common_config('webfinger', 'http_alias')) {
+ if (common_config('fix', 'legacy_http')) {
foreach ($aliases as $alias=>$id) {
if (!strtolower(parse_url($alias, PHP_URL_SCHEME)) === 'https') {
continue;