chat-e2ee icon indicating copy to clipboard operation
chat-e2ee copied to clipboard

Custom port does not work.

Open laishulu opened this issue 1 year ago • 2 comments

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • [Y] I am running the latest version
  • [Y] I checked the documentation and found no answer
  • [Y] I checked to make sure that this issue has not already been filed

Expected Behavior

work for chat.example.com:7777, not just chat.example.com

Current Behavior the webpage can be loaded correctly, but when I click create chat link, it failed to create room link.

Failure Information for server: chat.example.com:7777, see error visiting: https://chat.example.com/api/chat-link even CHAT_LINK_DOMAIN=https://chat.example.com:7777

Steps to Reproduce

click "create chat link" in the home page.

Context nginx:7777 -> chatapp:3001

laishulu avatar Nov 30 '24 16:11 laishulu

I also encountered this issue. After deploying directly with Docker Compose, I found that the requested address did not include the port. I understand that it should only work with a domain name. Is there a way to support IP + port?" some config: chatapp: image: ghcr.io/muke1908/chat-e2ee:master container_name: chat-app restart: unless-stopped env_file: .env environment: - MONGO_URI=mongodb://$MONGO_USERNAME:$MONGO_PASSWORD@db:$MONGO_PORT/admin?authSource=admin ports: - "8914:3001" networks: - app-network

MONGO_USERNAME=mongo MONGO_PASSWORD=wwww123 MONGO_PORT=27017 MONGO_DB_NAME=test CHAT_LINK_DOMAIN=http://123.45.678.9:8914 IMAGE_BB_API_KEY=123

MagicalPotato avatar Jan 10 '25 03:01 MagicalPotato

@muke1908

Could you please fix it? should be trivial.

laishulu avatar May 26 '25 07:05 laishulu