github.com/grafana/pyroscope@v1.18.0/examples/language-sdk-instrumentation/python/rideshare/django/nginx/nginx.conf (about)

     1  upstream hello_django {
     2      server web:8000;
     3  }
     4  
     5  server {
     6  
     7      listen 80;
     8  
     9      location / {
    10          proxy_pass http://hello_django;
    11          proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    12          proxy_set_header Host $host;
    13          proxy_redirect off;
    14      }
    15  
    16      location /static/ {
    17          alias /home/app/web/staticfiles/;
    18      }
    19  
    20      location /media/ {
    21          alias /home/app/web/mediafiles/;
    22      }
    23  
    24  }