Differential D11800 Diff 28447 src/applications/diffusion/config/PhabricatorDiffusionConfigOptions.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/config/PhabricatorDiffusionConfigOptions.php
| Show First 20 Lines • Show All 107 Lines • ▼ Show 20 Lines | return array( | ||||
| "Because HTTP basic auth is less secure than SSH auth, it is ". | "Because HTTP basic auth is less secure than SSH auth, it is ". | ||||
| "disabled by default. You can enable it here if you'd like to use ". | "disabled by default. You can enable it here if you'd like to use ". | ||||
| "it anyway. There's nothing fundamentally insecure about it as ". | "it anyway. There's nothing fundamentally insecure about it as ". | ||||
| "long as Phabricator uses HTTPS, but it presents a much lower ". | "long as Phabricator uses HTTPS, but it presents a much lower ". | ||||
| "barrier to attackers than SSH does.\n\n". | "barrier to attackers than SSH does.\n\n". | ||||
| "Consider using SSH for authenticated access to repositories ". | "Consider using SSH for authenticated access to repositories ". | ||||
| "instead of HTTP.")), | "instead of HTTP.")), | ||||
| $this->newOption('diffusion.ssh-user', 'string', null) | $this->newOption('diffusion.ssh-user', 'string', null) | ||||
| ->setLocked(true) | |||||
| ->setSummary(pht('Login username for SSH connections to repositories.')) | ->setSummary(pht('Login username for SSH connections to repositories.')) | ||||
| ->setDescription( | ->setDescription( | ||||
| pht( | pht( | ||||
| 'When constructing clone URIs to show to users, Diffusion will '. | 'When constructing clone URIs to show to users, Diffusion will '. | ||||
| 'fill in this login username. If you have configured a VCS user '. | 'fill in this login username. If you have configured a VCS user '. | ||||
| 'like `git`, you should provide it here.')), | 'like `git`, you should provide it here.')), | ||||
| $this->newOption('diffusion.ssh-port', 'int', null) | $this->newOption('diffusion.ssh-port', 'int', null) | ||||
| ->setLocked(true) | |||||
| ->setSummary(pht('Port for SSH connections to repositories.')) | ->setSummary(pht('Port for SSH connections to repositories.')) | ||||
| ->setDescription( | ->setDescription( | ||||
| pht( | pht( | ||||
| 'When constructing clone URIs to show to users, Diffusion by '. | 'When constructing clone URIs to show to users, Diffusion by '. | ||||
| 'default will not display a port assuming the default for your '. | 'default will not display a port assuming the default for your '. | ||||
| 'VCS. Explicitly declare when running on a non-standard port.')), | 'VCS. Explicitly declare when running on a non-standard port.')), | ||||
| $this->newOption('diffusion.ssh-host', 'string', null) | |||||
| ->setLocked(true) | |||||
| ->setSummary(pht('Host for SSH connections to repositories.')) | |||||
| ->setDescription( | |||||
| pht( | |||||
| 'If you accept Phabricator SSH traffic on a different host '. | |||||
| 'from web traffic (for example, if you use different SSH and '. | |||||
| 'web load balancers), you can set the SSH hostname here. This '. | |||||
| 'is an advanced option.')), | |||||
| ); | ); | ||||
| } | } | ||||
| } | } | ||||