nginx.conf 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. daemon off;
  2. worker_processes 1;
  3. error_log logs/nginx_error.log;
  4. events {
  5. worker_connections 1024;
  6. }
  7. http {
  8. sendfile on;
  9. # This may be different depending on the platform.
  10. include /etc/nginx/mime.types;
  11. default_type application/octet-stream;
  12. access_log logs/nginx_access.log;
  13. server {
  14. server_name localhost;
  15. charset utf-8;
  16. # If running hue on http://
  17. listen 8001;
  18. # If running hue on https://
  19. ## listen 8001 ssl;
  20. ## ssl_certificate /path/to/ssl/cert;
  21. ## ssl_certificate_key /path/to/ssl/key;
  22. location / {
  23. proxy_pass http://hue;
  24. proxy_set_header Host $http_host;
  25. proxy_set_header X-Forwarded-For $remote_addr;
  26. }
  27. location /static/ {
  28. # Uncomment to expose the static file directories.
  29. ## autoindex on;
  30. # Generated by the monitor-hue-lb script.
  31. include ../var/nginx-alias.conf;
  32. expires 30d;
  33. add_header Cache-Control public;
  34. }
  35. }
  36. # Generated by the monitor-hue-lb script.
  37. include ../var/nginx-hue.conf;
  38. }