Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F638125
PhabricatorSite.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
580 B
Referenced Files
None
Subscribers
None
PhabricatorSite.php
View Options
<?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
Details
Attached
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)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment