diff --git a/atom.xml b/atom.xml index 009a84ba61..493dde9ebc 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Home Assistant]]> - 2017-05-30T07:42:26+00:00 + 2017-05-30T10:26:07+00:00 https://home-assistant.io/ diff --git a/blog/categories/announcements/atom.xml b/blog/categories/announcements/atom.xml index 941218cb60..3f6b2ca600 100644 --- a/blog/categories/announcements/atom.xml +++ b/blog/categories/announcements/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Announcements | Home Assistant]]> - 2017-05-30T07:42:26+00:00 + 2017-05-30T10:26:07+00:00 https://home-assistant.io/ diff --git a/blog/categories/community/atom.xml b/blog/categories/community/atom.xml index abb6b1e739..7caeedc8ce 100644 --- a/blog/categories/community/atom.xml +++ b/blog/categories/community/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Community | Home Assistant]]> - 2017-05-30T07:42:26+00:00 + 2017-05-30T10:26:07+00:00 https://home-assistant.io/ diff --git a/blog/categories/device-tracking/atom.xml b/blog/categories/device-tracking/atom.xml index b7865a3ecd..2449ae9956 100644 --- a/blog/categories/device-tracking/atom.xml +++ b/blog/categories/device-tracking/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Device-Tracking | Home Assistant]]> - 2017-05-30T07:42:26+00:00 + 2017-05-30T10:26:07+00:00 https://home-assistant.io/ diff --git a/blog/categories/esp8266/atom.xml b/blog/categories/esp8266/atom.xml index f8ffda5516..96d985a3da 100644 --- a/blog/categories/esp8266/atom.xml +++ b/blog/categories/esp8266/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: ESP8266 | Home Assistant]]> - 2017-05-30T07:42:26+00:00 + 2017-05-30T10:26:07+00:00 https://home-assistant.io/ diff --git a/blog/categories/how-to/atom.xml b/blog/categories/how-to/atom.xml index daef45f355..75a33c57b4 100644 --- a/blog/categories/how-to/atom.xml +++ b/blog/categories/how-to/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: How-To | Home Assistant]]> - 2017-05-30T07:42:26+00:00 + 2017-05-30T10:26:07+00:00 https://home-assistant.io/ diff --git a/blog/categories/ibeacons/atom.xml b/blog/categories/ibeacons/atom.xml index 1e3364bdc4..023960248a 100644 --- a/blog/categories/ibeacons/atom.xml +++ b/blog/categories/ibeacons/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: iBeacons | Home Assistant]]> - 2017-05-30T07:42:26+00:00 + 2017-05-30T10:26:07+00:00 https://home-assistant.io/ diff --git a/blog/categories/internet-of-things/atom.xml b/blog/categories/internet-of-things/atom.xml index a94d6e7157..62e889b617 100644 --- a/blog/categories/internet-of-things/atom.xml +++ b/blog/categories/internet-of-things/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Internet-of-Things | Home Assistant]]> - 2017-05-30T07:42:26+00:00 + 2017-05-30T10:26:07+00:00 https://home-assistant.io/ diff --git a/blog/categories/iot-data/atom.xml b/blog/categories/iot-data/atom.xml index e8754aca03..037f7c43d4 100644 --- a/blog/categories/iot-data/atom.xml +++ b/blog/categories/iot-data/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: IoT-Data | Home Assistant]]> - 2017-05-30T07:42:26+00:00 + 2017-05-30T10:26:07+00:00 https://home-assistant.io/ diff --git a/blog/categories/merchandise/atom.xml b/blog/categories/merchandise/atom.xml index bc31e09fea..8a71ff550a 100644 --- a/blog/categories/merchandise/atom.xml +++ b/blog/categories/merchandise/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Merchandise | Home Assistant]]> - 2017-05-30T07:42:26+00:00 + 2017-05-30T10:26:07+00:00 https://home-assistant.io/ diff --git a/blog/categories/micropython/atom.xml b/blog/categories/micropython/atom.xml index 15b81b417b..234d57e5fa 100644 --- a/blog/categories/micropython/atom.xml +++ b/blog/categories/micropython/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Micropython | Home Assistant]]> - 2017-05-30T07:42:26+00:00 + 2017-05-30T10:26:07+00:00 https://home-assistant.io/ diff --git a/blog/categories/mqtt/atom.xml b/blog/categories/mqtt/atom.xml index 8d4253e81c..279949fceb 100644 --- a/blog/categories/mqtt/atom.xml +++ b/blog/categories/mqtt/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: MQTT | Home Assistant]]> - 2017-05-30T07:42:26+00:00 + 2017-05-30T10:26:07+00:00 https://home-assistant.io/ diff --git a/blog/categories/organisation/atom.xml b/blog/categories/organisation/atom.xml index 74cff349e5..ead931a987 100644 --- a/blog/categories/organisation/atom.xml +++ b/blog/categories/organisation/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Organisation | Home Assistant]]> - 2017-05-30T07:42:26+00:00 + 2017-05-30T10:26:07+00:00 https://home-assistant.io/ diff --git a/blog/categories/owntracks/atom.xml b/blog/categories/owntracks/atom.xml index 27fa787184..deba7c9738 100644 --- a/blog/categories/owntracks/atom.xml +++ b/blog/categories/owntracks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: OwnTracks | Home Assistant]]> - 2017-05-30T07:42:26+00:00 + 2017-05-30T10:26:07+00:00 https://home-assistant.io/ diff --git a/blog/categories/presence-detection/atom.xml b/blog/categories/presence-detection/atom.xml index 6c22e00f29..a825eb01d0 100644 --- a/blog/categories/presence-detection/atom.xml +++ b/blog/categories/presence-detection/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Presence-Detection | Home Assistant]]> - 2017-05-30T07:42:26+00:00 + 2017-05-30T10:26:07+00:00 https://home-assistant.io/ diff --git a/blog/categories/public-service-announcement/atom.xml b/blog/categories/public-service-announcement/atom.xml index f3314b8137..88f81821fe 100644 --- a/blog/categories/public-service-announcement/atom.xml +++ b/blog/categories/public-service-announcement/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Public-Service-Announcement | Home Assistant]]> - 2017-05-30T07:42:26+00:00 + 2017-05-30T10:26:07+00:00 https://home-assistant.io/ diff --git a/blog/categories/release-notes/atom.xml b/blog/categories/release-notes/atom.xml index fc3e25379f..ab602b40c3 100644 --- a/blog/categories/release-notes/atom.xml +++ b/blog/categories/release-notes/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Release-Notes | Home Assistant]]> - 2017-05-30T07:42:26+00:00 + 2017-05-30T10:26:07+00:00 https://home-assistant.io/ diff --git a/blog/categories/survey/atom.xml b/blog/categories/survey/atom.xml index 6b07349705..dae4ddf71f 100644 --- a/blog/categories/survey/atom.xml +++ b/blog/categories/survey/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Survey | Home Assistant]]> - 2017-05-30T07:42:26+00:00 + 2017-05-30T10:26:07+00:00 https://home-assistant.io/ diff --git a/blog/categories/talks/atom.xml b/blog/categories/talks/atom.xml index 87ff186b65..403e05984f 100644 --- a/blog/categories/talks/atom.xml +++ b/blog/categories/talks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Talks | Home Assistant]]> - 2017-05-30T07:42:26+00:00 + 2017-05-30T10:26:07+00:00 https://home-assistant.io/ diff --git a/blog/categories/technology/atom.xml b/blog/categories/technology/atom.xml index 7005eca82b..07c539a428 100644 --- a/blog/categories/technology/atom.xml +++ b/blog/categories/technology/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Technology | Home Assistant]]> - 2017-05-30T07:42:26+00:00 + 2017-05-30T10:26:07+00:00 https://home-assistant.io/ diff --git a/blog/categories/user-stories/atom.xml b/blog/categories/user-stories/atom.xml index 1f69e9dc52..77b22b59e4 100644 --- a/blog/categories/user-stories/atom.xml +++ b/blog/categories/user-stories/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: User-Stories | Home Assistant]]> - 2017-05-30T07:42:26+00:00 + 2017-05-30T10:26:07+00:00 https://home-assistant.io/ diff --git a/blog/categories/video/atom.xml b/blog/categories/video/atom.xml index cb29e43070..257cbc3150 100644 --- a/blog/categories/video/atom.xml +++ b/blog/categories/video/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Video | Home Assistant]]> - 2017-05-30T07:42:26+00:00 + 2017-05-30T10:26:07+00:00 https://home-assistant.io/ diff --git a/blog/categories/website/atom.xml b/blog/categories/website/atom.xml index 0f44dc3aef..e6491abca3 100644 --- a/blog/categories/website/atom.xml +++ b/blog/categories/website/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Website | Home Assistant]]> - 2017-05-30T07:42:26+00:00 + 2017-05-30T10:26:07+00:00 https://home-assistant.io/ diff --git a/docs/ecosystem/nginx/index.html b/docs/ecosystem/nginx/index.html index ecce2d84c5..42501ab12d 100644 --- a/docs/ecosystem/nginx/index.html +++ b/docs/ecosystem/nginx/index.html @@ -83,6 +83,7 @@

Using openssl

If you do not own your own domain, you may generate a self-signed certificate. This will not work with IFTTT, but it will encrypt all of your Home Assistant traffic.

openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 9999
+openssl rsa -in key.pem -out key.pem
 sudo cp key.pem cert.pem /etc/nginx/ssl
 sudo chmod 600 /etc/nginx/ssl/key.pem /etc/nginx/ssl/cert.pem
 sudo chown root:root /etc/nginx/ssl/key.pem /etc/nginx/ssl/cert.pem
@@ -96,6 +97,9 @@ sudo openssl dhparam -out dhparams.pem 2048
 

5. Install configuration file in nginx.

Create a new file /etc/nginx/sites-available/hass and copy the configuration file at the bottom of the page into it.

+

+Some Linux distributions (including CentOS and Fedora) will not have the /etc/nginx/sites-available/ directory. In this case, remove the default server {} block from the /etc/nginx/nginx.conf file and paste the contents from the bottom of the page in its place. If doing this, proceed to step 7. +

6. Enable the Home Assistant configuration.

cd /etc/nginx/sites-enabled
 sudo unlink default
@@ -107,56 +111,54 @@ sudo ln ../sites-available/hass default
 

8. Port forwarding.

Forward ports 443 and 80 to your server on your router. Do not forward port 8123.

NGINX Config

-
http {
-    map $http_upgrade $connection_upgrade {
-        default upgrade;
-        ''      close;
-    }
+
map $http_upgrade $connection_upgrade {
+    default upgrade;
+    ''      close;
+}
 
-    server {
-        # Update this line to be your domain
-        server_name example.com;
+server {
+    # Update this line to be your domain
+    server_name example.com;
 
-        # These shouldn't need to be changed
-        listen [::]:80 default_server ipv6only=off;
-        return 301 https://$host$request_uri;
-    }
+    # These shouldn't need to be changed
+    listen [::]:80 default_server ipv6only=off;
+    return 301 https://$host$request_uri;
+}
 
-    server {
-        # Update this line to be your domain
-        server_name example.com;
+server {
+    # Update this line to be your domain
+    server_name example.com;
 
-        # Ensure these lines point to your SSL certificate and key
-        ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
-        ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
-        # Use these lines instead if you created a self-signed certificate
-        # ssl_certificate /etc/nginx/ssl/cert.pem;
-        # ssl_certificate_key /etc/nginx/ssl/key.pem;
+    # Ensure these lines point to your SSL certificate and key
+    ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
+    ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
+    # Use these lines instead if you created a self-signed certificate
+    # ssl_certificate /etc/nginx/ssl/cert.pem;
+    # ssl_certificate_key /etc/nginx/ssl/key.pem;
 
-        # Ensure this line points to your dhparams file
-        ssl_dhparam /etc/nginx/ssl/dhparams.pem;
+    # Ensure this line points to your dhparams file
+    ssl_dhparam /etc/nginx/ssl/dhparams.pem;
 
 
-        # These shouldn't need to be changed
-        listen [::]:443 default_server ipv6only=off; # if your nginx version is >= 1.9.5 you can also add the "http2" flag here
-        add_header Strict-Transport-Security "max-age=31536000; includeSubdomains";
-        ssl on;
-        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
-        ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4";
-        ssl_prefer_server_ciphers on;
-        ssl_session_cache shared:SSL:10m;
+    # These shouldn't need to be changed
+    listen [::]:443 default_server ipv6only=off; # if your nginx version is >= 1.9.5 you can also add the "http2" flag here
+    add_header Strict-Transport-Security "max-age=31536000; includeSubdomains";
+    ssl on;
+    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
+    ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4";
+    ssl_prefer_server_ciphers on;
+    ssl_session_cache shared:SSL:10m;
 
-        proxy_buffering off;
+    proxy_buffering off;
 
-        location / {
-            proxy_pass http://localhost:8123;
-            proxy_set_header Host $host;
-            proxy_redirect http:// https://;
-            proxy_http_version 1.1;
-            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
-            proxy_set_header Upgrade $http_upgrade;
-            proxy_set_header Connection $connection_upgrade;
-        }
+    location / {
+        proxy_pass http://localhost:8123;
+        proxy_set_header Host $host;
+        proxy_redirect http:// https://;
+        proxy_http_version 1.1;
+        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+        proxy_set_header Upgrade $http_upgrade;
+        proxy_set_header Connection $connection_upgrade;
     }
 }
 
diff --git a/sitemap.xml b/sitemap.xml index f989d4cd03..578dc050cc 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -3466,62 +3466,62 @@ https://home-assistant.io/demo/frontend.html -2017-05-30T07:41:28+00:00 +2017-05-30T10:25:15+00:00 https://home-assistant.io/demo/index.html -2017-05-30T07:41:28+00:00 +2017-05-30T10:25:15+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-event.html -2017-05-30T07:41:28+00:00 +2017-05-30T10:25:15+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-info.html -2017-05-30T07:41:28+00:00 +2017-05-30T10:25:15+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-service.html -2017-05-30T07:41:28+00:00 +2017-05-30T10:25:15+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-state.html -2017-05-30T07:41:28+00:00 +2017-05-30T10:25:15+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-template.html -2017-05-30T07:41:28+00:00 +2017-05-30T10:25:15+00:00 https://home-assistant.io/demo/panels/ha-panel-history.html -2017-05-30T07:41:28+00:00 +2017-05-30T10:25:15+00:00 https://home-assistant.io/demo/panels/ha-panel-iframe.html -2017-05-30T07:41:28+00:00 +2017-05-30T10:25:15+00:00 https://home-assistant.io/demo/panels/ha-panel-logbook.html -2017-05-30T07:41:28+00:00 +2017-05-30T10:25:15+00:00 https://home-assistant.io/demo/panels/ha-panel-map.html -2017-05-30T07:41:28+00:00 +2017-05-30T10:25:15+00:00 https://home-assistant.io/googlef4f3693c209fe788.html -2017-05-30T07:41:28+00:00 +2017-05-30T10:25:15+00:00 https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html -2017-05-30T07:41:28+00:00 +2017-05-30T10:25:15+00:00 https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html -2017-05-30T07:41:28+00:00 +2017-05-30T10:25:15+00:00 https://home-assistant.io/static/mdi-demo.html -2017-05-30T07:41:28+00:00 +2017-05-30T10:25:15+00:00