Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F11722611
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
6 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/PORTS b/PORTS
index 52187f7..f53f400 100644
--- a/PORTS
+++ b/PORTS
@@ -1,5 +1,7 @@
paas-docker
+ 22220 Phabricator Aphlict (client)
+ 22221 Phabricator Aphlict (admin)
31080 Phabricator HTTP - DevCentral
34080 Etherpad
38080 Jenkins HTTP - CD
50000 Jenkins master's port for JNLP-based Jenkins agents - CD
diff --git a/pillar/paas/docker.sls b/pillar/paas/docker.sls
index b98ce05..6b12327 100644
--- a/pillar/paas/docker.sls
+++ b/pillar/paas/docker.sls
@@ -1,89 +1,90 @@
# -------------------------------------------------------------
# Salt — Provision Docker engine
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Created: 2018-03-10
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
# -------------------------------------------------------------
# Images and containers
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# You can append a :tag (by default, latest is used).
# You can't directly specify a Docker library images.
# See https://docs.saltstack.com/en/latest/ref/states/all/salt.states.docker_image.html
docker_images:
'*':
- certbot/certbot
dwellers:
# Core services
- nasqueron/rabbitmq
# Infrastructure and development services
- dereckson/cachet
- nasqueron/notifications
equatower:
# Core services
- nasqueron/mysql
# Infrastructure and development services
- nasqueron/aphlict
- nasqueron/etherpad
- nasqueron/phabricator
# Continuous deployment jobs
- jenkinsci/jenkins
- nasqueron/jenkins-slave-php
# phpBB SaaS
- nasqueron/mysql
docker_containers:
equatower:
# MySQL
mysql:
acquisitariat: {}
phpbb_db: {}
# CD
jenkins:
host: cd.nasqueron.org
app_port: 38080
jenkins_slave:
apsile:
ip: 172.17.0.100
elapsi:
ip: 172.17.0.101
# Infrastructure and development services
phabricator:
devcentral: {}
+ aphlict: {}
etherpad:
app_port: 34080
mysql_link: acquisitariat
plugins:
- ep_ether-o-meter
- ep_author_neat
# phpBB SaaS
# The SaaS uses a MySQL instance, declared in the MySQL section.
# Openfire
openfire:
host: xmpp.nasqueron.org
# -------------------------------------------------------------
# Ports listened by XMPP
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
xmpp_ports:
- 3478
- 5222 # Client to server
- 5223 # Client to server (Encrypted (legacy-mode) connections)
- 5262 # Cnnections managers
- 5269 # Server to server
- 5275 # External components
- 5276 # External components (Encrypted (legacy-mode) connections)
- 7070 # HTTP binding
- 7443 # HTTP binding with TLS
- 7777 # File transfer proxy
- 9090 # Web administration server
- 9091 # Web administration server with THLS
diff --git a/roles/paas-docker/containers/aphlict.sls b/roles/paas-docker/containers/aphlict.sls
new file mode 100644
index 0000000..71ef5f8
--- /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
index 7d4d579..db492c6 100644
--- a/roles/paas-docker/nginx/files/vhosts/devcentral.conf
+++ b/roles/paas-docker/nginx/files/vhosts/devcentral.conf
@@ -1,80 +1,93 @@
+map $http_upgrade $connection_upgrade {
+ default upgrade;
+ '' close;
+}
+
server {
listen 80;
listen [::]:80;
server_name phabricator.nasqueron.org;
include includes/letsencrypt;
include includes/tls;
ssl_certificate /srv/letsencrypt/etc/live/devcentral.nasqueron.org/fullchain.pem;
ssl_certificate_key /srv/letsencrypt/etc/live/devcentral.nasqueron.org/privkey.pem;
rewrite ^ https://devcentral.nasqueron.org$request_uri? permanent;
}
server {
listen 80;
listen [::]:80;
server_name phabricator-files-for-devcentral-nasqueron.spacetechnology.net;
return 301 https://$host$request_uri;
}
server {
server_name phabricator-files-for-devcentral-nasqueron.spacetechnology.net;
include includes/letsencrypt;
include includes/tls;
ssl_certificate /srv/letsencrypt/etc/live/devcentral.nasqueron.org/fullchain.pem;
ssl_certificate_key /srv/letsencrypt/etc/live/devcentral.nasqueron.org/privkey.pem;
include includes/proxy_params;
location / {
proxy_pass http://localhost:31080;
}
}
server {
listen 80;
listen [::]:80;
server_name devcentral.nasqueron.org;
return 301 https://$host$request_uri;
}
server {
server_name devcentral.nasqueron.org;
include includes/letsencrypt;
include includes/tls;
ssl_certificate /srv/letsencrypt/etc/live/devcentral.nasqueron.org/fullchain.pem;
ssl_certificate_key /srv/letsencrypt/etc/live/devcentral.nasqueron.org/privkey.pem;
include includes/proxy_params;
location / {
proxy_pass http://localhost:31080;
}
location ~ ^/maniphest/task/create {
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;
location /502.html {}
}
server {
listen 80;
listen [::]:80;
server_name server.nasqueron.org serveur.nasqueron.org serveurs.nasqueron.org;
include includes/letsencrypt; include includes/tls;
ssl_certificate /srv/letsencrypt/etc/live/devcentral.nasqueron.org/fullchain.pem;
ssl_certificate_key /srv/letsencrypt/etc/live/devcentral.nasqueron.org/privkey.pem;
rewrite ^ https://servers.nasqueron.org$request_uri? permanent;
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Thu, Sep 18, 04:09 (10 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2989952
Default Alt Text
(6 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment