douglasmiranda / docker-taiga

Taiga services running on Docker with Docker Compose (http://taiga.io)
52 stars 23 forks source link

keep calling localhost:8000 for api calls :( #15

Closed panosru closed 5 years ago

panosru commented 5 years ago

No matter what I do, it still keeps calling localhost:8000 for api calls...

I have set my hostname in env file, in docker-compose yml files, everywhere where I can, but it still calls localhost:8000 for api :'(

image

I run ~# docker exec -it taiga_frontend_1 sh to check what env is showing (and I checked that in all the containers of taiga) (I replaced with asterisks sensitive info)

/taiga_frontend # env
EVENTS_URL="wss://******/events"
VIRTUAL_HOST=******
HOSTNAME=97c9d91e367e
DEBUG=False
CELERY_ENABLED=True
SECRET_KEY='******'
EMAIL_PORT = 587
SHLVL=1
DEFAULT_FROM_EMAIL='******'
HOME=/root
TAIGA_VERSION=4.0.0-stable
SSL_ENABLED=True
CELERY_TIMEZONE='Europe/******'
RABBITMQ_ERLANG_COOKIE=******
RABBITMQ_PASSWORD=******
TERM=xterm
PUBLIC_REGISTER_ENABLED=false
RABBITMQ_HOST=rabbitmq
EMAIL_HOST_PASSWORD = '******'
RABBITMQ_USER=taiga
NGINX_VERSION=1.15.7
POSTGRES_PASSWORD=******
EMAIL_USE_SSL = True
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
EMAIL_HOST_USER = '******'
POSTGRES_USER=taiga
TAIGA_HOSTNAME=******
RABBITMQ_VHOST=taiga
TAIGA_SECRET='******'
ALLOWED_HOSTS=******
LETSENCRYPT_HOST=******
PWD=/taiga_frontend
POSTGRES_DB=taiga
API_URL="https://******/api/v1/"
LETSENCRYPT_EMAIL=******
EMAIL_HOST = 'smtp.gmail.com'
/taiga_frontend # ls
conf.example.json  conf.json          humans.txt         images             index.html         media              static-root        v-1543396862041
/taiga_frontend # cat conf.json
{
    "api": "https://******/api/v1/",
    "eventsUrl": "wss://******/events",
    "eventsMaxMissedHeartbeats": 5,
    "eventsHeartbeatIntervalTime": 60000,
    "debug": False,
    "debugInfo": False,
    "defaultLanguage": "en",
    "themes": ["taiga"],
    "defaultTheme": "taiga",
    "importers": null,
    "publicRegisterEnabled": false,
    "feedbackEnabled": true,
    "privacyPolicyUrl": null,
    "termsOfServiceUrl": null,
    "maxUploadFileSize": null,
    "contribPlugins": []
}
/taiga_frontend # exit

do anyone have any idea what might happening?

Thanks!

Update

Oh, I think I can see the issue, the False in conf.json files (with capital F) is invalid json format, I'll work on fixing it now and see if that was the source of the issue.

Update

I have modified the file frontend/scripts/entrypoint.sh and I added the following line:

TAIGA_DEBUG=$(echo ${DEBUG:-false} | awk '{print tolower($0)}')

and later on:

    "debug": $TAIGA_DEBUG,
    "debugInfo": $TAIGA_DEBUG,

problem solved.

cheers

douglasmiranda commented 5 years ago

Thanks for sharing your solution! xD