Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3768985
D1713.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
D1713.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
@@ -64,6 +64,9 @@
etherpad:
app_port: 34080
host: pad.nasqueron.org
+ aliases:
+ - pad.wolfplex.org
+ - pad.wolfplex.be
mysql_link: acquisitariat
plugins:
- ep_ether-o-meter
diff --git a/roles/paas-docker/nginx/config.sls b/roles/paas-docker/nginx/config.sls
--- a/roles/paas-docker/nginx/config.sls
+++ b/roles/paas-docker/nginx/config.sls
@@ -37,6 +37,9 @@
- context:
fqdn: {{ args['host'] }}
app_port: {{ args['app_port'] }}
+ {% if 'aliases' in args %}
+ aliases: {{ args['aliases']|join(" ") }}
+ {% endif %}
{% endif %}
{% endfor %}
diff --git a/roles/paas-docker/nginx/files/vhosts/etherpad.conf b/roles/paas-docker/nginx/files/vhosts/etherpad.conf
--- a/roles/paas-docker/nginx/files/vhosts/etherpad.conf
+++ b/roles/paas-docker/nginx/files/vhosts/etherpad.conf
@@ -16,7 +16,7 @@
server {
listen 80;
listen [::]:80;
- server_name {{ fqdn }};
+ server_name {{ fqdn }} {{ aliases }};
include includes/letsencrypt;
@@ -24,7 +24,7 @@
}
server {
- server_name {{ fqdn }};
+ server_name {{ fqdn }} {{ aliases }};
include includes/tls;
ssl_certificate /srv/letsencrypt/etc/live/{{ fqdn }}/fullchain.pem;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 11:52 (10 h, 4 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2260120
Default Alt Text
D1713.diff (1 KB)
Attached To
Mode
D1713: Configure nginx to serve pad.wolfplex.org
Attached
Detach File
Event Timeline
Log In to Comment