I am running the docker and after docker run . . . through an .sh process , i am trying to add the httpheaders so as to make an api call through my project, which runs on locahost:3000. I found it a little bit confusing since, after docker run . . ., ipfs daemon running right away and i dont know the exact time that this process will take , that's why i can run
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin "[$ALLOW_ORIGINS]"
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "GET", "POST"]'
and after that restart daemon. Is there any easy way?