RocketChat / Rocket.Chat

The communications platform that puts data protection first.
https://rocket.chat/
Other
40.34k stars 10.47k forks source link

Subdir routing is duplicated. #10248

Open honzasram opened 6 years ago

honzasram commented 6 years ago

Description:

As per title, I've met problem with latest image after recreating whole setup. Web applications is not responding. Proxy response is 504 Gateway Time-out. Same when i try go directly to server. Desktop app is working like a charm.

Server Setup Information:

Our setup has NGINX reverse proxy with these lines in config:

  location /rocket{
    proxy_pass http://machine-ip:3000;
  }

docker compose have this:

  rocketchat:
    image: rocket.chat:latest
    restart: unless-stopped
    volumes:
      - ./uploads:/app/uploads
    environment:
      - PORT=3000
      - ROOT_URL=https://our.domain.com/rocket
      - MONGO_URL=mongodb://mongo:27017/rocketchat
      - MONGO_OPLOG_URL=mongodb://mongo:27017/local
      - Accounts_UseDNSDomainCheck=false
    depends_on:
      - mongo
    ports:
      - 3000:3000

  mongo:
    image: mongo
    restart: unless-stopped
    volumes:
     - ./data/runtime/db:/data/db
     - ./data/dump:/dump
    command: mongod --smallfiles --replSet rs0
    labels:
      - "traefik.enable=false"

Relevant logs:

docker logs show this:

(node:1) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 4): Error: url must be a relative URL:
honzasram commented 6 years ago

After some horsin' around I find out that instance is somehow responsive at https://our.domain.com/rocket/rocket. With double subfolder I get loading script but nothing else. Same when i reach server directly (without reverse proxy).

Can somebody please help me? It's frustrating. Subfolder was working fine before. I tried to create it from fresh start without config and other data, also unsuccessful. However without subfolder it is working fine.

ura14h commented 6 years ago

Same issue? #10732