hue.conf 703 B

123456789101112131415161718192021222324252627282930313233
  1. server {
  2. server_name hue;
  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://127.0.0.1:8888;
  11. # Or if the upstream Hue instances are running behind https://
  12. ## proxy_pass https://hue;
  13. }
  14. location /static/ {
  15. alias /usr/share/nginx/html/hue/static/;
  16. expires 30d;
  17. add_header Cache-Control public;
  18. }
  19. }
  20. upstream hue {
  21. ip_hash;
  22. # List all the Hue instances here for high availability.
  23. server 127.0.0.1:8888 max_fails=3;
  24. #server HUE_HOST2:8888 max_fails=3;
  25. }