nginx.conf 1.1 KB

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