Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F12241415
preamble.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
374 B
Referenced Files
None
Subscribers
None
preamble.php
View Options
<?php
/**
* Preamble script to play nice with a nginx reverse proxy.
*
* Shipped with Docker nasqueron/phabricator image.
*/
// We trust the answer of nginx.
$_SERVER
[
'REMOTE_ADDR'
]
=
$_SERVER
[
'HTTP_X_FORWARDED_FOR'
];
// Phabricator uses the HTTPS variable to determine the protocol.
if
(
$_SERVER
[
'HTTP_X_FORWARDED_PROTO'
]
===
'https'
)
{
$_SERVER
[
'HTTPS'
]
=
true
;
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Oct 12, 05:05 (6 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3065098
Default Alt Text
preamble.php (374 B)
Attached To
Mode
rDPHAB Docker image for Phabricator
Attached
Detach File
Event Timeline
Log In to Comment