Open khalidrizki01 opened 11 months ago
If you use backend behind NPM you don't need https
Here is my config for one simple service. NPM redirect request to container by container name.
But I'm here because custom locations
don't work for me.
Here is props
Nginx logs say that upstream don't exist
How I can solve this ?
Also here for this issue. OP, ever find a solution?
Issue is now considered stale. If you want to keep it open, please comment :+1:
Checklist
jc21/nginx-proxy-manager:latest
docker image?Describe the bug I'm still new to nginx and full stack web deployment. I'm encountering a 502 Bad Gateway error every time I attempt to load both the frontend and backend. I've dockerized my application into frontend (React Vite) and backend (FastAPI Python) containers, then deployed them on a VPS. I've configured the proxy host using Nginx Proxy Manager. The configuration for the frontend proxy host is as follows:
And here's the configuration for the backend proxy host:
My Docker Compose file looks like this:
The error logs for both frontend and backend show a connection refused error with an upstream IP address of https://172.#.#.#. However, my VPS IP is 203.#.#.#. Below are the logs:
frontend proxy host error logs: `
backend proxy host error logs:
Thank you for your help!
Nginx Proxy Manager Version 2.10.4
To Reproduce Steps to reproduce the behavior:
Expected behavior Can load the frontend and backend from local pc
Screenshots 502 bad gateway
backend proxy host configuration:
frontend proxy host configuration:
Operating System Ubuntu 22.04.1 LTS
Additional context Additionally, I've included CORS settings in the backend and an API URL in the frontend as follows:
backend (fastapi python):
frontend (react vite)
Below is the docker compose for my nginx proxy manager: