mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-28 09:42:41 +01:00
ae7dc8b9d2
Summary: Adds core and apps grouping to configuration options, makes it somewhat easier to browse config options. Test Plan: Set each option, review list. Breakdown is nearly 50/50 apps/core. Reviewers: btrahan, epriestley Reviewed By: epriestley Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D11722
65 lines
2.1 KiB
PHP
65 lines
2.1 KiB
PHP
<?php
|
|
|
|
final class PhabricatorNotificationConfigOptions
|
|
extends PhabricatorApplicationConfigOptions {
|
|
|
|
public function getName() {
|
|
return pht('Notifications');
|
|
}
|
|
|
|
public function getDescription() {
|
|
return pht('Configure real-time notifications.');
|
|
}
|
|
|
|
public function getFontIcon() {
|
|
return 'fa-bell';
|
|
}
|
|
|
|
public function getGroup() {
|
|
return 'core';
|
|
}
|
|
|
|
public function getOptions() {
|
|
return array(
|
|
$this->newOption('notification.enabled', 'bool', false)
|
|
->setBoolOptions(
|
|
array(
|
|
pht('Enable Real-Time Notifications'),
|
|
pht('Disable Real-Time Notifications'),
|
|
))
|
|
->setSummary(pht('Enable real-time notifications.'))
|
|
->setDescription(
|
|
pht(
|
|
"Enable real-time notifications. You must also run a Node.js ".
|
|
"based notification server for this to work. Consult the ".
|
|
"documentation in 'Notifications User Guide: Setup and ".
|
|
"Configuration' for instructions.")),
|
|
$this->newOption(
|
|
'notification.client-uri',
|
|
'string',
|
|
'http://localhost:22280/')
|
|
->setDescription(pht('Location of the client server.')),
|
|
$this->newOption(
|
|
'notification.server-uri',
|
|
'string',
|
|
'http://localhost:22281/')
|
|
->setDescription(pht('Location of the notification receiver server.')),
|
|
$this->newOption('notification.log', 'string', '/var/log/aphlict.log')
|
|
->setDescription(pht('Location of the server log file.')),
|
|
$this->newOption('notification.ssl-key', 'string', null)
|
|
->setLocked(true)
|
|
->setDescription(
|
|
pht('Path to SSL key to use for secure WebSockets.')),
|
|
$this->newOption('notification.ssl-cert', 'string', null)
|
|
->setLocked(true)
|
|
->setDescription(
|
|
pht('Path to SSL certificate to use for secure WebSockets.')),
|
|
$this->newOption(
|
|
'notification.pidfile',
|
|
'string',
|
|
'/var/tmp/aphlict/pid/aphlict.pid')
|
|
->setDescription(pht('Location of the server PID file.')),
|
|
);
|
|
}
|
|
|
|
}
|