Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

puppet: Serve /etc/zulip/well-known/ in nginx as /.well-known/.

Alex Vandiver528d0ebcf0e6
diff --git a/puppet/zulip_ops/files/nginx/zulip-include-app.d/well-known.conf b/puppet/zulip_ops/files/nginx/zulip-include-app.d/well-known.conf
new file mode 100644
index 00000000000..64a94f663d9
--- /dev/null
+++ b/puppet/zulip_ops/files/nginx/zulip-include-app.d/well-known.conf
@@ -0,0 +1,3 @@
+location /.well-known/ {
+ alias /etc/zulip/well-known/;
+}
diff --git a/puppet/zulip_ops/manifests/app_frontend.pp b/puppet/zulip_ops/manifests/app_frontend.pp
index 71345a5a7ab..b3d3ab3f050 100644
--- a/puppet/zulip_ops/manifests/app_frontend.pp
+++ b/puppet/zulip_ops/manifests/app_frontend.pp
@@ -34,6 +34,16 @@ class zulip_ops::app_frontend {
content => zulipsecret('secrets', 'redis_password', ''),
}
+ # Mount /etc/zulip/well-known/ as /.well-known/
+ file { '/etc/nginx/zulip-include/app.d/well-known.conf':
+ require => File['/etc/nginx/zulip-include/app.d'],
+ owner => 'root',
+ group => 'root',
+ mode => '0644',
+ source => 'puppet:///modules/zulip_ops/nginx/zulip-include-app.d/well-known.conf',
+ notify => Service['nginx'],
+ }
+
# Each server does its own fetching of contributor data, since
# we don't have a way to synchronize that among several servers.
file { '/etc/cron.d/fetch-contributor-data':