瀏覽代碼

[load-balancer] Add example SSL configuration to nginx config

Erick Tryzelaar 10 年之前
父節點
當前提交
b776889
共有 1 個文件被更改,包括 8 次插入1 次删除
  1. 8 1
      tools/load-balancer/etc/nginx.conf

+ 8 - 1
tools/load-balancer/etc/nginx.conf

@@ -17,10 +17,17 @@ http {
     access_log logs/nginx_access.log;
 
     server {
-        listen 8001;
         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;
         }