From 5cb782a34ee6a8d941b9f09133876a4b841500fc Mon Sep 17 00:00:00 2001 From: Niklas Date: Fri, 27 Jul 2018 09:32:18 +0200 Subject: [PATCH] Fix styling, trailing slash at NGINX config (#5899) * Styling * Remove trailing slash, styling Removed trailing slash because of https://www.home-assistant.io/components/google_assistant/#troubleshooting-with-nginx --- source/_docs/ecosystem/nginx.markdown | 2 +- source/_docs/ecosystem/nginx_subdomain.markdown | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/source/_docs/ecosystem/nginx.markdown b/source/_docs/ecosystem/nginx.markdown index 46ae6152d1c..0d44113b3e4 100644 --- a/source/_docs/ecosystem/nginx.markdown +++ b/source/_docs/ecosystem/nginx.markdown @@ -85,7 +85,7 @@ Forward ports 443 and 80 to your server on your router. Do not forward port 8123 ### {% linkable_title NGINX Config %} -```text +```nginx map $http_upgrade $connection_upgrade { default upgrade; '' close; diff --git a/source/_docs/ecosystem/nginx_subdomain.markdown b/source/_docs/ecosystem/nginx_subdomain.markdown index 714be21f489..64831bd8194 100644 --- a/source/_docs/ecosystem/nginx_subdomain.markdown +++ b/source/_docs/ecosystem/nginx_subdomain.markdown @@ -34,7 +34,7 @@ server { ssl_prefer_server_ciphers on; location / { - proxy_pass http://localhost:8123/; + proxy_pass http://localhost:8123; proxy_set_header Host $host; proxy_http_version 1.1; @@ -78,7 +78,7 @@ Start Home Assistant: Now, you have another instance running on http://localhost To access this instance by using https://countryside.example.org create the file `/etc/nginx/sites-enabled/countryside.example.org` (or symlink via `/etc/nginx/sites-available`) and add the following: -```bash +```nginx server { listen 443 ssl; server_name countryside.example.org; @@ -89,7 +89,7 @@ server { ssl_prefer_server_ciphers on; location / { - proxy_pass http://localhost:8124/; + proxy_pass http://localhost:8124; proxy_set_header Host $host; } @@ -109,7 +109,7 @@ server { Add to your `/etc/nginx/sites-enabled/default` -```bash +```nginx server { listen 80 default_server; server_name example.tld;