Page MenuHomePhabricator

Handle websockets with reverse-proxied phabricator
Needs RevisionPublic

Authored by blaa on Jul 3 2015, 12:52 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Mar 23, 12:50 PM
Unknown Object (File)
Mon, Mar 4, 6:53 PM
Unknown Object (File)
Feb 3 2024, 5:41 AM
Unknown Object (File)
Jan 21 2024, 5:15 PM
Unknown Object (File)
Jan 14 2024, 9:26 AM
Unknown Object (File)
Jan 9 2024, 11:07 AM
Unknown Object (File)
Dec 27 2023, 11:19 PM
Unknown Object (File)
Dec 21 2023, 9:39 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