Self Hosting: Problems with Nginx reverse proxy
I've read two previous posts on this however I can't get reverse proxying working for novu.
I am using nginx with the following config: https://hastebin.skyra.pw/edufimigej.nginx
with the following env variables (a bit verbose but I'm really not sure where the issue lies)
Ran the docker containers. After navigating to
novu.domain.com
I get a 502 from Cloudflar.e.6 Replies
Hi @Victor, I'm an AI assistant for Novu. While a team member reviews this question, I'll see if I can find relevant sources for your question.
@Victor, you just advanced to level 1!
-----------------------------
While I generate an answer, here are some sources that might be helpful:
* Deploy with Docker
* Run Novu in local machine
* How to send notifications with Next.js and React email
* AWS
-----------------------------
Answer
It appears you are having challenges setting up reverse proxying for Novu with Nginx. Here are a few tips and an example configuration to help guide you:
1. Ensure Context Paths: Make sure the context paths in your
.env
file align with those in your Nginx configuration.
2. Correct Proxies: Your Nginx configuration should properly route requests to the correct backend services.
Here's an example .env
configuration:
(1) , (2) , (3) , (4)
And an example Nginx configuration:Going to reconfigure the env file & config as per above first.
Glad I could be helpful. Feel free to create a new thread with any new questions you may have.