From 7f6a33f8a1762173c292f04e77226534178b9a5a Mon Sep 17 00:00:00 2001 From: Mike Keesey Date: Mon, 11 Feb 2019 16:49:35 -0700 Subject: [PATCH] Update NGINX proxy documentation (#8466) * Update NGINX proxy documentation This fixes some of the formatting to allow the http component documentation to show up. * :pencil2: Tweak * :pencil2: Typo fix --- source/_docs/ecosystem/nginx.markdown | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/source/_docs/ecosystem/nginx.markdown b/source/_docs/ecosystem/nginx.markdown index 0117554c3d7..4f4fcfa4a24 100644 --- a/source/_docs/ecosystem/nginx.markdown +++ b/source/_docs/ecosystem/nginx.markdown @@ -89,14 +89,17 @@ Home Assistant is still available without using the NGINX proxy. Restricting it On your `configuration.yaml` file, edit the `http` component. -{% configuration %} +```yaml http: - server_host: 127.0.0.1 + # For extra security set this to only accept connections on localhost if NGINX is on the same machine + # server_host: 127.0.0.1 # Update this line to be your domain - base_url: https://exemple.com + base_url: https://example.com use_x_forwarded_for: true - trusted_proxies: 127.0.0.1 -{% endconfiguration %} + # You must set the trusted proxy IP address so that Home Assistant will properly accept connections + # Set this to your NGINX machine IP, or localhost if hosted on the same machine. + trusted_proxies: +``` ### {% linkable_title NGINX Config %}