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;