Page MenuHomePhabricator

Handle websockets with reverse-proxied phabricator
Needs RevisionPublic

Authored by blaa on Jul 3 2015, 12:52 AM.
Tags
None
Referenced Files
F18960615: D13538.diff
Thu, Nov 13, 12:05 PM
F18865635: D13538.id32718.diff
Mon, Nov 3, 1:13 PM
F18845598: D13538.id32718.diff
Wed, Oct 29, 1:24 PM
F18845201: D13538.diff
Wed, Oct 29, 10:29 AM
F18815343: D13538.id.diff
Oct 21 2025, 1:47 AM
F18807936: D13538.diff
Oct 19 2025, 4:00 AM
F18600491: D13538.diff
Sep 13 2025, 9:52 AM
F18383949: D13538.diff
Aug 28 2025, 11:36 PM
Subscribers

Details

Summary

Configuration:
Nginx (SSL + reverse proxy) -> Apache (PHP)
wouldn't work because request, as seen by apache, was never
over HTTPS and http/https setting on client-uri was ignored.

Test Plan

Create configuration with TLS terminated before apache (running phabricator) sees it.
Then try to use websockets/notifications according to documentation at
https://secure.phabricator.com/book/phabricator/article/notifications/

Chromium has a bit better error messages than firefox. Both won't be able to connect
because of security policies.

Diff Detail

Repository
rP Phabricator
Branch
master
Lint
Lint Skipped
Unit
Tests Passed
Build Status
Buildable 7126
Build 7301: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

blaa retitled this revision from to Handle websockets with reverse-provied phabricator..
blaa updated this object.
blaa edited the test plan for this revision. (Show Details)
epriestley added a reviewer: epriestley.

Set HTTPS in $_SERVER properly, by passing variables or using preamble.php:

https://secure.phabricator.com/book/phabricator/article/configuring_preamble/

This revision now requires changes to proceed.Jul 3 2015, 1:18 AM

If preamble.php is preferred solution then I only suggest to link it here to the `advanced' section:
https://secure.phabricator.com/book/phabricator/article/notifications/
Passing `http' in client-uri suggests it means something and kept me in a loophole for 2 hours.

dereckson retitled this revision from Handle websockets with reverse-provied phabricator. to Handle websockets with reverse-proxied phabricator..Jul 10 2016, 11:37 PM
dereckson edited edge metadata.
chad retitled this revision from Handle websockets with reverse-proxied phabricator. to Handle websockets with reverse-proxied phabricator.Jul 11 2016, 1:29 AM