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

This commit is contained in:
Alex Vandiver 2023-10-04 16:25:49 -04:00 committed by Tim Abbott
parent 9388db83dd
commit 528d0ebcf0
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,3 @@
location /.well-known/ {
alias /etc/zulip/well-known/;
}

View File

@ -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':