Ibrar Ansari
NNovu
•Created by Ibrar Ansari on 6/19/2024 in #💬│support
Getting error "POST https://mydomain.com/api/v1/widgets/session/initialize 404 (Not Found)
my .env example
Root URL
REACT_APP_WS_URL=$HOST_NAME/ws
API_ROOT_URL=$HOST_NAME/api
DISABLE_USER_REGISTRATION=true
FRONT_BASE_URL=$HOST_NAME
WIDGET_EMBED_PATH=$HOST_NAME:4701/embed.umd.min.js
WIDGET_URL=$HOST_NAME/widget
Context Paths
Only needed for setups with reverse-proxies
GLOBAL_CONTEXT_PATH=
WEB_CONTEXT_PATH=
API_CONTEXT_PATH=api
WS_CONTEXT_PATH=ws
WIDGET_CONTEXT_PATH=widget
nginx vhost for novu
location /api {
# Redirect API requests to HTTPS
#rewrite ^/api(.*)$ https://$http_host/api$1 permanent;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_pass http://localhost:3000/api;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
location /widget {
proxy_pass http://localhost:4500/widget;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
Can anyone guide me why I am getting above error (I deployed docker based self-hosted Novu)
https://docs.novu.co/self-hosting-novu/deploy-with-docker?utm_campaign=website
8 replies