| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- daemon off;
- worker_processes 1;
- error_log logs/nginx_error.log;
- events {
- worker_connections 1024;
- }
- http {
- sendfile on;
- # This may be different depending on the platform.
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
- access_log logs/nginx_access.log;
- server {
- server_name localhost;
- charset utf-8;
- # If running hue on http://
- listen 8001;
- # If running hue on https://
- ## listen 8001 ssl;
- ## ssl_certificate /path/to/ssl/cert;
- ## ssl_certificate_key /path/to/ssl/key;
- location / {
- proxy_pass http://hue;
- proxy_set_header Host $http_host;
- proxy_set_header X-Forwarded-For $remote_addr;
- }
- location /static/ {
- # Uncomment to expose the static file directories.
- ## autoindex on;
- # Generated by the monitor-hue-lb script.
- include ../var/nginx-alias.conf;
- expires 30d;
- add_header Cache-Control public;
- }
- }
- # Generated by the monitor-hue-lb script.
- include ../var/nginx-hue.conf;
- }
|