mirror of
https://github.com/zulip/docker-zulip.git
synced 2025-11-13 18:35:49 +00:00
resurrect DISABLE_HTTPS option
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.
This commit is contained in:
22
setup_files/nginx/zulip-enterprise-http
Normal file
22
setup_files/nginx/zulip-enterprise-http
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user