Page MenuHomePhabricator

Allow the Aphlict server to bind to localhost
ClosedPublic

Authored by joshuaspence on Jan 8 2015, 11:08 PM.
Tags
None
Referenced Files
F14000666: D11288.id27128.diff
Thu, Oct 24, 11:33 PM
F14000665: D11288.id.diff
Thu, Oct 24, 11:33 PM
F14000613: D11288.diff
Thu, Oct 24, 11:15 PM
Unknown Object (File)
Oct 13 2024, 6:18 AM
Unknown Object (File)
Oct 8 2024, 5:31 PM
Unknown Object (File)
Sep 17 2024, 7:39 AM
Unknown Object (File)
Sep 12 2024, 6:37 AM
Unknown Object (File)
Sep 6 2024, 3:46 AM
Subscribers

Details

Summary

If you are running the Aphlict server behind a reverse proxy (such as nginx) then there's no need to bind to 0.0.0.0. Add a --client-host flag to aphlict_server.js to allow binding to a different hostname. Also changed the other flags for consistency and clarity.

Test Plan

Started, stopped and debug the Aphlict server.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Allow the Aphlict server to bind to localhost.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
epriestley edited edge metadata.
epriestley added inline comments.
src/applications/aphlict/management/PhabricatorAphlictManagementRestartWorkflow.php
12–16

Maybe move this spec into the superclass?

support/aphlict/server/aphlict_server.js
12–16

This cleanup is nice.

This revision is now accepted and ready to land.Jan 8 2015, 11:55 PM
src/applications/aphlict/management/PhabricatorAphlictManagementRestartWorkflow.php
12–16

Sure. This might be problematic if any of the workflows want to implement their own arguments, but we can deal with this later.

Yeah, we can always array_merge($this_args, $this->getCommonServerArgs()) or whatever.

This revision was automatically updated to reflect the committed changes.