Эх сурвалжийг харах

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

Erick Tryzelaar 10 жил өмнө
parent
commit
b776889a94

+ 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;
         }