Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F5705148
D1676.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D1676.diff
View Options
diff --git a/PORTS b/PORTS
--- a/PORTS
+++ b/PORTS
@@ -1,4 +1,6 @@
paas-docker
+ 22220 Phabricator Aphlict (client)
+ 22221 Phabricator Aphlict (admin)
31080 Phabricator HTTP - DevCentral
34080 Etherpad
38080 Jenkins HTTP - CD
diff --git a/pillar/paas/docker.sls b/pillar/paas/docker.sls
--- a/pillar/paas/docker.sls
+++ b/pillar/paas/docker.sls
@@ -56,6 +56,7 @@
# Infrastructure and development services
phabricator:
devcentral: {}
+ aphlict: {}
etherpad:
app_port: 34080
mysql_link: acquisitariat
diff --git a/roles/paas-docker/containers/aphlict.sls b/roles/paas-docker/containers/aphlict.sls
new file mode 100644
--- /dev/null
+++ b/roles/paas-docker/containers/aphlict.sls
@@ -0,0 +1,27 @@
+# -------------------------------------------------------------
+# Salt — Provision Docker engine
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2018-09-07
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+# -------------------------------------------------------------
+# Container
+#
+# Image: nasqueron/aphlict
+# Description: Node application to get real time notifications
+# through websockets for Phabricator instances.
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+aphlict:
+ docker_container.running:
+ - detach: True
+ - interactive: True
+ - image: nasqueron/aphlict
+ - ports:
+ - 22280
+ - 22281
+ - port_bindings:
+ - 22280:22280
+ - 22281:22281
diff --git a/roles/paas-docker/nginx/files/vhosts/devcentral.conf b/roles/paas-docker/nginx/files/vhosts/devcentral.conf
--- a/roles/paas-docker/nginx/files/vhosts/devcentral.conf
+++ b/roles/paas-docker/nginx/files/vhosts/devcentral.conf
@@ -1,3 +1,8 @@
+map $http_upgrade $connection_upgrade {
+ default upgrade;
+ '' close;
+}
+
server {
listen 80;
listen [::]:80;
@@ -61,6 +66,14 @@
rewrite ^/maniphest/task/create/?(.*) /maniphest/task/edit/form/1/$1;
}
+ location = /ws/ {
+ proxy_pass http://localhost:22280;
+ proxy_http_version 1.1;
+ proxy_set_header Upgrade $http_upgrade;
+ proxy_set_header Connection "upgrade";
+ proxy_read_timeout 999999999;
+ }
+
#502 error
root /var/wwwroot-502/devcentral.nasqueron.org;
error_page 502 /502.html;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 15, 12:06 (18 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2487488
Default Alt Text
D1676.diff (2 KB)
Attached To
Mode
D1676: Migrate Aphlict to Equatower
Attached
Detach File
Event Timeline
Log In to Comment