Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
nginx: Allow adding extra monitoring paths in a localhost.d.
Alex Vandiver023e634e98e7
diff --git a/docs/production/upgrade.md b/docs/production/upgrade.mdindex 29e904e6827..3ed49927825 100644--- a/docs/production/upgrade.md+++ b/docs/production/upgrade.md@@ -306,14 +306,19 @@ handle your setup.### nginx configuration changes-If you need to modify Zulip's `nginx` configuration, we recommend-first attempting to add configuration to `/etc/nginx/conf.d` or-`/etc/nginx/zulip-include/app.d`; those directories are designed for-custom configuration, and are not overridden during upgrades. The-former is useful for directives with the `http` [context][context],-and the latter for `server` contexts.+If you need to extend Zulip's `nginx` configuration, there are a few different+include directories you can use, in different [contexts][context]:++- `/etc/nginx/conf.d` is in the [`http` context][http-context]+- `/etc/nginx/zulip-include/app.d` is in the [`server` context][server-context]+ for the public-facing server+- `/etc/nginx/zulip-include/localhost.d` is in the [`server`+ context][server-context] for the server listening on `127.0.0.1:80`, which is+ used for internal inter-process communication[context]: http://nginx.org/en/docs/beginners_guide.html#conf_structure+[http-context]: http://nginx.org/en/docs/http/ngx_http_core_module.html#http+[server-context]: http://nginx.org/en/docs/http/ngx_http_core_module.html#server## Upgrading PostgreSQLdiff --git a/puppet/zulip/manifests/app_frontend_base.pp b/puppet/zulip/manifests/app_frontend_base.ppindex 8cf90333911..8532a0dc065 100644--- a/puppet/zulip/manifests/app_frontend_base.pp+++ b/puppet/zulip/manifests/app_frontend_base.pp@@ -53,6 +53,12 @@ class zulip::app_frontend_base {group => 'root',mode => '0755',}+ file { '/etc/nginx/zulip-include/localhost.d/':+ ensure => directory,+ owner => 'root',+ group => 'root',+ mode => '0755',+ }$loadbalancers = split(zulipconf('loadbalancer', 'ips', ''), ',')if $loadbalancers != [] {diff --git a/puppet/zulip/templates/nginx/zulip-enterprise.template.erb b/puppet/zulip/templates/nginx/zulip-enterprise.template.erbindex 48af4ced693..6cf3fdcd4d7 100644--- a/puppet/zulip/templates/nginx/zulip-enterprise.template.erb+++ b/puppet/zulip/templates/nginx/zulip-enterprise.template.erb@@ -22,6 +22,7 @@ server {}include /etc/nginx/zulip-include/certbot;+ include /etc/nginx/zulip-include/localhost.d/*.conf;}<% end -%>