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. }
  25. location /static/ {
  26. # Uncomment to expose the static file directories.
  27. ## autoindex on;
  28. # The default Hue staticfile packaging installation directory.
  29. alias /usr/lib/hue/build/static/;
  30. # The default Hue staticfile parcel installation directory.
  31. ## /opt/cloudera/parcels/CDH/lib/hue/build/static/;
  32. expires 30d;
  33. add_header Cache-Control public;
  34. }
  35. }
  36. include ../var/nginx-hue.conf;
  37. }