taiga-docker icon indicating copy to clipboard operation
taiga-docker copied to clipboard

[BUG] Media links remain to `localhost:9000` in docker-compose environment

Open agampe opened this issue 3 years ago • 1 comments

May have had a messy docker-compose.yml that originally did not override the TAIGA_SITES_DOMAIN while setting up Taiga - it worked just fine with just TAIGA_URL, though. Then I noticed that while attachments can be uploaded, the media links are still to localhost:9000.

Things I tried:

  • Change TAIGA_SITES_DOMAIN to the domain used - did not work
  • Use a hardcoded config.py - did not work
  • Log at the end of config.py the value of MEDIA_URL - shows the expected value, e.g.,
[33mtaiga-async_1            |ESC[0m WARNING:root:MEDIA_URL = https://my.domain/media/

Yet I get attachment links like

http://localhost:9000/media/attachments/f/a/b/2/04ea6bb76aedc3f0b1071a24c17498014528c09f488ae1bce64fd8ebeb5d/mplayer-youtube.txt?token=YbQG-g%3AUiZG3CVEO6YVxX8uYAQWVYolNUu075WAd8ujLLG8eRXB6e0vTuuxEOQ_hwRNWC1YHsO8gHC1Qhu6dT19kXybQQ#_taiga-refresh=userstory:5

Is there some cache I should clear somewhere? It would be great if I didn't have to start from scratch. :-)

Changes to the docker-compose.yml

-  TAIGA_SITES_SCHEME: "http"
-  TAIGA_SITES_DOMAIN: "localhost:9000"
+  TAIGA_SITES_SCHEME: "https"
+  TAIGA_SITES_DOMAIN: "my.domain"
[...]
-      TAIGA_URL: "http://localhost:9000"
-      TAIGA_WEBSOCKETS_URL: "ws://localhost:9000"
+      TAIGA_URL: "https://my.domain"
+      TAIGA_WEBSOCKETS_URL: "wss://my.domain"

(The first change came after already having used Taiga for a while.)

agampe avatar Dec 11 '21 02:12 agampe