Self Hosted instance tries to connect to localhost instead of custom URL
Hi Team. I was able to successfully setup Novu using docker and the containers managed to start up with no issues. I have set up the env variables in the .env file successfully. However, when I try to connect to my self hosted instance and sign up, I get "Network Error" in the UI. Upon checking the console, I see that the POST request related to registering the user is being sent to http://localhost:3000/v1/auth/register instead of the custom URL which would obviously fail
I checked similar threads and tried to use ghcr.io/joeyeamigh/novu/web:nv-1803 as the web container, but I get the same issue.
Additionally, I am using NGINX as a reverse proxy and I have set the context paths accordingly
11 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
thanks for the info, I will try that
Now it seems to be pointing to the right domain, but wrong port. I have an nginx host configured as api.novu.example.com which proxies to localhost:3000 (same server as novu). env is set as follows
The register route seems to be sending the post request to http://novu.example.com:3000/v1/auth/register
which results in
POST http://novu.nfsbattles.rifkisalim.com:3000/v1/auth/register net::ERR_NAME_NOT_RESOLVED
as the 3000 port is not opened since I am using a nginx reverse proxy@rifkisalim.dev, you just advanced to level 1!
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Update: the issue was fixed after "ghcr.io/joeyeamigh/novu/web:nv-1803" as the image for novu web. Deleting all containers and volumes and recreating after setting the new env variable and clearing browser cache seemed to solve the issue
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Thanks for posting this @rifkisalim.dev @bhavikchavda @mishrabhushan @fetchman
Can you please look into this @zacclifton ?
Anyone from @Engineering please have a look here!
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Glad to see this!
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
@mishrabhushan, you just advanced to level 1!