mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 07:23:22 +00:00
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>
21 lines
661 B
Plaintext
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;
|
|
}
|