Provide missing default attachment list for Files transactions
[phabricator.git] / src / aphront / site / PhabricatorSite.php
blob95e0a538faa41ed49b809d725003f96d4a2482b4
1 <?php
3 abstract class PhabricatorSite extends AphrontSite {
5 public function shouldRequireHTTPS() {
6 // If this is an intracluster request, it's okay for it to use HTTP even
7 // if the site otherwise requires HTTPS. It is common to terminate SSL at
8 // a load balancer and use plain HTTP from then on, and administrators are
9 // usually not concerned about attackers observing traffic within a
10 // datacenter.
11 if (PhabricatorEnv::isClusterRemoteAddress()) {
12 return false;
15 return PhabricatorEnv::getEnvConfig('security.require-https');