JSP
JSP
NNovu
Created by k0zn4n3j4 on 1/10/2024 in #💬│support
socket.io endpoint on reverse proxy?
Thanks @harrisyn, for sharing the nginx file. One more thing to share if someone misses it that you also need to update the Root URLs in the env file to use direct paths instead of ports.
# Root URL
REACT_APP_WS_URL=$HOST_NAME/ws # updated
# Uncomment this one when deploying Novu in the local environment
# as Web app local Dockerfile will have to load this to be used.
# Deployment version doesn't need as we inject it with API_ROOT_URL value.
#REACT_APP_API_URL=$HOST_NAME:3000
API_ROOT_URL=$HOST_NAME/api # updated
DISABLE_USER_REGISTRATION=false
FRONT_BASE_URL=$HOST_NAME:4200
WIDGET_EMBED_PATH=$HOST_NAME:4701/embed.umd.min.js
WIDGET_URL=$HOST_NAME/widget # updated
# Root URL
REACT_APP_WS_URL=$HOST_NAME/ws # updated
# Uncomment this one when deploying Novu in the local environment
# as Web app local Dockerfile will have to load this to be used.
# Deployment version doesn't need as we inject it with API_ROOT_URL value.
#REACT_APP_API_URL=$HOST_NAME:3000
API_ROOT_URL=$HOST_NAME/api # updated
DISABLE_USER_REGISTRATION=false
FRONT_BASE_URL=$HOST_NAME:4200
WIDGET_EMBED_PATH=$HOST_NAME:4701/embed.umd.min.js
WIDGET_URL=$HOST_NAME/widget # updated
25 replies