mirror of
https://github.com/zulip/docker-zulip.git
synced 2025-10-24 08:33:47 +00:00
There used to be a DISABLE_HTTPS setting. I'm not sure why it was removed, but I need it so I can use Zulip behind a Kubernetes Ingress without causing an infinite redirect.
23 lines
556 B
Plaintext
23 lines
556 B
Plaintext
|
|
include /etc/nginx/zulip-include/upstreams;
|
|
|
|
server {
|
|
listen 80;
|
|
|
|
location /user_avatars {
|
|
add_header X-Content-Type-Options nosniff;
|
|
add_header Content-Security-Policy "default-src 'none' img-src 'self'";
|
|
include /etc/nginx/zulip-include/uploads.types;
|
|
alias /home/zulip/uploads/avatars;
|
|
}
|
|
|
|
location /local-static {
|
|
alias /home/zulip/local-static;
|
|
}
|
|
|
|
include /etc/nginx/zulip-include/certbot;
|
|
include /etc/nginx/zulip-include/app;
|
|
include /etc/nginx/zulip-include/uploads.route;
|
|
}
|
|
|