This message was deleted.
# ask-questions
w
This message was deleted.
f
APP_ORIGIN and API_HOST should include
http://
. Also, I'm not sure it will work to set it to 0.0.0.0 since that might break the CORS headers
Also, make sure for the origin, the environment variable name is
APP_ORIGIN
and not
API_ORIGIN
So to summarize, if you want to access the app and api at
localhost:8000
and
localhost:8001
respectively, you would set the following environment variables: • APP_ORIGIN=http://localhost:8000 • API_HOST=http://localhost:8001 And you'll also need to update the port mapping in docker-compose.yml to be:
Copy code
ports:
      - "8000:3000"
      - "8001:3100"
m
Ah thanks! It works now, I include http:// and make sure it connects to right address. anyway may i delete my post? I forgot to mask my url 😅.
f
(removed the files with the IP address)
150 Views