Page MenuHomeDevCentral

D373.id889.diff
No OneTemporary

D373.id889.diff

diff --git a/Dockerfile b/Dockerfile
--- a/Dockerfile
+++ b/Dockerfile
@@ -11,9 +11,9 @@
cd phabricator/support/aphlict/server/ && \
npm install ws
+COPY aphlict.custom.json /opt/phabricator/conf/aphlict/
+
EXPOSE 22280 22281
WORKDIR /opt/phabricator/support/aphlict/server
-CMD [ "node", "aphlict_server.js", "--admin-host=0.0.0.0" ]
-
-
+CMD [ "node", "aphlict_server.js" ]
diff --git a/README.md b/README.md
--- a/README.md
+++ b/README.md
@@ -8,34 +8,38 @@
1. Pull the image: `docker pull nasqueron/aphlict`
2. Run the container: `docker run -dt -p 22280:22280 -p 22281:22281 nasqueron/aphlict`
-3. Configure your Phabricator instance at http://phabricator.domain.tld/config/group/notification/
-
-When you configure your instance, three parameters are necessary:
-
-* **notification.enabled:** true (Enable Real-Time Notifications)
-* **notification.client-uri:** http://<ip or host>:22280/
-* **notification.server-uri:** http://<ip or host>:22281/
-
+3. Configure your Phabricator instance at http://phabricator.domain.tld/config/edit/notification.servers
+
+When you configure your instance, use the following template:
+
+```lang=json
+[
+ {
+ "type": "client",
+ "host": "aphlict.yourdomain.tld",
+ "port": 22280,
+ "protocol": "http"
+ },
+ {
+ "type": "admin",
+ "host": "aphlict.yourdomain.tld",
+ "port": 22281,
+ "protocol": "http"
+ }
+]
+```
TLS termination
---------------
-Steps 1 and 2 as above.
-
-3. Follow the instructions of https://secure.phabricator.com/book/phabricator/article/notifications/#advanced-usage to configure your nginx. Note you can directly use proxy_pass http://localhost:22280/ and discard the upstream block.
-4. Configure your Phabricator instance at https://phabricator.domain.tld/config/group/notification/
-
-When you configure your intance, three parameters are necessary, but only *client-uri* changes from the HTTP config:
-
-* notification.client-uri: https://phabricator.domain.tld/ws/
-
-The other two remains the same:
+Add a certificate to your container, replace the protocol
+http by https in Phabricator config.
-* notification.server-uri: http://<ip or host>:22281/ *
-* notification.enabled: true (Enable Real-Time Notifications)
+Edit /opt/phabricator/conf/aphlict/aphlict.custom.json in your
+container, so ssl.key & ssl.cert certificates have the relevant paths.
Note
----
-You won't be able to access log or PID file, excepted if you add volumes
-and share them with your Phabricator instance (`-v ... --volumes-from=aphlict`).
+If `docker logs <your container>` don't give expected results,
+read /var/log/aphlict.log.
diff --git a/aphlict.custom.json b/aphlict.custom.json
new file mode 100644
--- /dev/null
+++ b/aphlict.custom.json
@@ -0,0 +1,24 @@
+{
+ "servers": [
+ {
+ "type": "client",
+ "port": 22280,
+ "listen": "0.0.0.0",
+ "ssl.key": null,
+ "ssl.cert": null
+ },
+ {
+ "type": "admin",
+ "port": 22281,
+ "listen": "0.0.0.0",
+ "ssl.key": null,
+ "ssl.cert": null
+ }
+ ],
+ "logs": [
+ {
+ "path": "/var/log/aphlict.log"
+ }
+ ],
+ "pidfile": "/var/run/aphlict.pid"
+}

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 26, 02:10 (21 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2263756
Default Alt Text
D373.id889.diff (3 KB)

Event Timeline