@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Allow Aphlict client port to be overridden

Summary: In my use case, I have `notification.client-uri` set to `https://phabricator.example.com/ws/` (which routes to `nginx`) but I need `aphlict` to listen to port `22280`.

Test Plan: Tested in our install.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D11337

+10 -1
+10 -1
src/applications/aphlict/management/PhabricatorAphlictManagementWorkflow.php
··· 5 5 6 6 private $debug = false; 7 7 private $clientHost; 8 + private $clientPort; 8 9 9 10 public function didConstruct() { 10 11 $this ··· 15 16 'param' => 'hostname', 16 17 'help' => pht('Hostname to bind to for the client server.'), 17 18 ), 19 + array( 20 + 'name' => 'client-port', 21 + 'param' => 'port', 22 + 'help' => pht('Port to bind to for the client server.'), 23 + ), 18 24 )); 19 25 } 20 26 21 27 public function execute(PhutilArgumentParser $args) { 22 28 $this->clientHost = $args->getArg('client-host'); 29 + $this->clientPort = $args->getArg('client-port'); 23 30 return 0; 24 31 } 25 32 ··· 124 131 $log = PhabricatorEnv::getEnvConfig('notification.log'); 125 132 126 133 $server_argv = array(); 127 - $server_argv[] = '--client-port='.$client_uri->getPort(); 134 + $server_argv[] = '--client-port='.coalesce( 135 + $this->clientPort, 136 + $client_uri->getPort()); 128 137 $server_argv[] = '--admin-port='.$server_uri->getPort(); 129 138 $server_argv[] = '--admin-host='.$server_uri->getDomain(); 130 139