nginx.conf 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. }
  25. location /static/ {
  26. # Uncomment to expose the static file directories.
  27. ## autoindex on;
  28. # Generated by the monitor-hue-lb script.
  29. include ../var/nginx-alias.conf;
  30. expires 30d;
  31. add_header Cache-Control public;
  32. }
  33. }
  34. # Generated by the monitor-hue-lb script.
  35. include ../var/nginx-hue.conf;
  36. }