summaryrefslogtreecommitdiffstats
path: root/docker/storperf-graphite/etc/nginx/conf.d/graphite
blob: e4c405dbd270a781a65b8184b1feb409cf72c440 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
server {
  listen      8080;
  server_name graphite;
  charset     utf-8;
  # Django admin media.
  location /graphite/static/admin/ {
    alias /usr/lib/python2.7/site-packages/django/contrib/admin/static/admin/;
  }

  # Your project's static media.
  location /graphite/static/ {
    alias /opt/graphite/webapp/content/;
  }

  # Finally, send all non-media requests to the Django server.
  location / {
    proxy_pass                 http://127.0.0.1:8000;
    proxy_set_header           X-Real-IP   $remote_addr;
    proxy_set_header           X-Forwarded-For  $proxy_add_x_forwarded_for;
    proxy_set_header           X-Forwarded-Proto  $scheme;
    proxy_set_header           X-Forwarded-Server  $host;
    proxy_set_header           X-Forwarded-Host  $host;
    proxy_set_header           Host  $host;

    client_max_body_size       10m;
    client_body_buffer_size    128k;

    proxy_connect_timeout      90;
    proxy_send_timeout         90;
    proxy_read_timeout         90;

    proxy_buffer_size          4k;
    proxy_buffers              4 32k;
    proxy_busy_buffers_size    64k;
    proxy_temp_file_write_size 64k;
  }
}