Files
zulip/puppet/zulip_ops/files/nginx/sites-available/zulip
Anders Kaseorg 7666ff603d sharding: Configure Tornado sharding with nginx map.
https://nginx.org/en/docs/http/ngx_http_map_module.html

Since Puppet doesn’t manage the contents of nginx_sharding.conf after
its initial creation, it needs to be renamed so we can give it
different default contents.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2022-09-15 16:07:50 -07:00

21 lines
661 B
Plaintext

include /etc/nginx/zulip-include/upstreams;
include /etc/zulip/nginx_sharding_map.conf;
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
# This server is behind an ALB, which does not check the
# certificate validity:
# https://kevin.burke.dev/kevin/aws-alb-validation-tls-reply/
#
# Snakeoil verts are good for 10 years after initial creation, but
# the ALBs don't even check expiration. ¯\_(ツ)_/¯
ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;
ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;
server_name zulipchat.com *.zulipchat.com;
include /etc/nginx/zulip-include/app;
}