Page MenuHomePhorge

PhabricatorSite.php
No OneTemporary

Size
580 B
Referenced Files
None
Subscribers
None

PhabricatorSite.php

<?php
abstract class PhabricatorSite extends AphrontSite {
public function shouldRequireHTTPS() {
// If this is an intracluster request, it's okay for it to use HTTP even
// if the site otherwise requires HTTPS. It is common to terminate SSL at
// a load balancer and use plain HTTP from then on, and administrators are
// usually not concerned about attackers observing traffic within a
// datacenter.
if (PhabricatorEnv::isClusterRemoteAddress()) {
return false;
}
return PhabricatorEnv::getEnvConfig('security.require-https');
}
}

File Metadata

Mime Type
text/x-php
Expires
Wed, May 14, 4:22 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
129549
Default Alt Text
PhabricatorSite.php (580 B)

Event Timeline