Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3790881
D2065.id5210.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D2065.id5210.diff
View Options
diff --git a/pillar/paas/docker.sls b/pillar/paas/docker.sls
--- a/pillar/paas/docker.sls
+++ b/pillar/paas/docker.sls
@@ -381,6 +381,11 @@
app_port: 9090
host: xmpp.nasqueron.org
+ # Other subservices for XMPP
+ # listening to their own subdomain
+ aliases:
+ - conference.nasqueron.org
+
# Pixelfed
pixelfed:
pixelfed:
diff --git a/roles/paas-docker/nginx/files/vhosts/openfire.conf b/roles/paas-docker/nginx/files/vhosts/openfire.conf
--- a/roles/paas-docker/nginx/files/vhosts/openfire.conf
+++ b/roles/paas-docker/nginx/files/vhosts/openfire.conf
@@ -13,6 +13,10 @@
# and will be lost if the state is redeployed.
# </auto-generated>
+# -------------------------------------------------------------
+# Application - {{ fqdn }}
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
server {
listen 80;
listen [::]:80;
@@ -41,3 +45,24 @@
error_page 502 /502.html;
location /502.html {}
}
+
+{%- if aliases %}
+
+# -------------------------------------------------------------
+# Redirects for app aliases domains
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+server {
+ listen 80;
+ listen [::]:80;
+ server_name {{ aliases }};
+
+ include includes/tls;
+ ssl_certificate /srv/letsencrypt/etc/live/{{ fqdn }}/fullchain.pem;
+ ssl_certificate_key /srv/letsencrypt/etc/live/{{ fqdn }}/privkey.pem;
+
+ include includes/letsencrypt;
+
+ return 301 https://{{ fqdn }}$request_uri;
+}
+{%- endif %}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 28, 07:31 (20 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2268558
Default Alt Text
D2065.id5210.diff (1 KB)
Attached To
Mode
D2065: Listen to conference.nasqueron.org for Openfire
Attached
Detach File
Event Timeline
Log In to Comment