zulip / docker-zulip

Container configurations, images, and examples for Zulip.
https://zulip.com/
Apache License 2.0
550 stars 227 forks source link

Disable Https to modify port static resources that are not modified ports #402

Closed wyl765703064 closed 1 year ago

wyl765703064 commented 1 year ago

Describe the bug

Disable Https to modify port static resources that are not modified ports

To Reproduce

Expected behavior

Screenshots

Desktop (please complete the following information):

Additional context

  1. docker-compose.yml

version: "2" services: database: image: "zulip/zulip-postgresql:14" restart: unless-stopped environment: POSTGRES_DB: "zulip" POSTGRES_USER: "zulip"

Note that you need to do a manual ALTER ROLE query if you

  # change this on a system after booting the postgres container
  # the first time on a host.  Instructions are available in README.md.
  POSTGRES_PASSWORD: "REPLACE_WITH_SECURE_POSTGRES_PASSWORD"
volumes:
  - "postgresql-14:/var/lib/postgresql/data:rw"

memcached: image: "memcached:alpine" restart: unless-stopped command:

  1. Problem description: After startup, accessing static resources on the page is not the port I configured above

    Problem screenshot:

image

wyl765703064 commented 1 year ago

@zulip-docker

timabbott commented 1 year ago

This issue is likely caused by configuring EXTERNAL_HOST type settings incorrectly, such that the Zulip server thinks it has a different URL than the one your users are accessing on it.

I'll also note that we only support disabling HTTPS to use Zulip behind a reverse proxy that does SSL termination; directly accessing a Zulip server without SSL is not supported.

wyl765703064 commented 1 year ago

So how should I make static resources also the ports I configure @timabbott