graphite.j2 781 B

123456789101112131415161718192021222324252627282930
  1. server {
  2. listen 80;
  3. listen [::]:80;
  4. listen 443 ssl spdy;
  5. listen [::]:443 ssl spdy;
  6. ssl_certificate /etc/ssl/fullchain.pem;
  7. ssl_certificate_key /etc/ssl/key.pem;
  8. ssl_session_cache shared:SSL:5m;
  9. ssl_session_timeout 5m;
  10. add_header Strict-Transport-Security "max-age=31536000; includeSubdomains;";
  11. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  12. ssl_ciphers "AES:!ADH:!AECDH:!MD5:!DSS";
  13. ssl_prefer_server_ciphers on;
  14. server_name graphite.{{ freifunk.domain }};
  15. root /var/www/html;
  16. index index.html;
  17. charset utf-8;
  18. location / {
  19. uwsgi_pass unix:/run/uwsgi/app/graphite/socket;
  20. include uwsgi_params;
  21. }
  22. location /content/ {
  23. alias /var/lib/graphite/webapp/content/;
  24. }
  25. location /.well-known/ {
  26. alias /var/www/html/.well-known/;
  27. try_files $uri $uri/ =404;
  28. }
  29. }