leandromoreira / cdn-up-and-running

CDN Up and Running - Building a CDN from Scratch to Learn about CDN, Nginx, Lua, Prometheus, Grafana, Load balancing, and Containers.
BSD 3-Clause "New" or "Revised" License
3.26k stars 198 forks source link

Fixed permission issues with prometheus/grafana and timeout errors in nginx #12

Open BernatRubio opened 8 months ago

BernatRubio commented 8 months ago

Adjusted permissions to ensure Prometheus and Grafana can access all necessary files for proper functionality.

Sometimes upstream takes too long to answer the request and NGINX thinks the upstream already failed in processing the request, so it responds with an error. Adjusted proxy_read_timeout to avoid that.