hue 956 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. server {
  2. server_name demo.gethue.com;
  3. charset utf-8;
  4. listen 80;
  5. # Or if running hue on https://
  6. ## listen 8001 ssl;
  7. ## ssl_certificate /path/to/ssl/cert;
  8. ## ssl_certificate_key /path/to/ssl/key;
  9. location / {
  10. proxy_pass http://demo.gethue.com:8888;
  11. # Or if the upstream Hue instances are running behind https://
  12. ## proxy_pass https://hue;
  13. }
  14. location /static/ {
  15. # Uncomment to expose the static file directories.
  16. ## autoindex on;
  17. # If Hue was installed with packaging install:
  18. alias /home/ubuntu/hue/build/static/;
  19. # Or if on a parcel install:
  20. ## /opt/cloudera/parcels/CDH/lib/hue/build/static/;
  21. expires 30d;
  22. add_header Cache-Control public;
  23. }
  24. }
  25. upstream hue {
  26. ip_hash;
  27. # List all the Hue instances here for high availability.
  28. server localhost:8888 max_fails=3;
  29. #server HUE_HOST2:8888 max_fails=3;
  30. }