mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-21 00:06:51 +00:00
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
This commit is contained in:
parent
ca5b2de0aa
commit
5cb782a34e
@ -85,7 +85,7 @@ Forward ports 443 and 80 to your server on your router. Do not forward port 8123
|
|||||||
|
|
||||||
### {% linkable_title NGINX Config %}
|
### {% linkable_title NGINX Config %}
|
||||||
|
|
||||||
```text
|
```nginx
|
||||||
map $http_upgrade $connection_upgrade {
|
map $http_upgrade $connection_upgrade {
|
||||||
default upgrade;
|
default upgrade;
|
||||||
'' close;
|
'' close;
|
||||||
|
@ -34,7 +34,7 @@ server {
|
|||||||
ssl_prefer_server_ciphers on;
|
ssl_prefer_server_ciphers on;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://localhost:8123/;
|
proxy_pass http://localhost:8123;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
|
|
||||||
proxy_http_version 1.1;
|
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:
|
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 {
|
server {
|
||||||
listen 443 ssl;
|
listen 443 ssl;
|
||||||
server_name countryside.example.org;
|
server_name countryside.example.org;
|
||||||
@ -89,7 +89,7 @@ server {
|
|||||||
ssl_prefer_server_ciphers on;
|
ssl_prefer_server_ciphers on;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://localhost:8124/;
|
proxy_pass http://localhost:8124;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -109,7 +109,7 @@ server {
|
|||||||
|
|
||||||
Add to your `/etc/nginx/sites-enabled/default`
|
Add to your `/etc/nginx/sites-enabled/default`
|
||||||
|
|
||||||
```bash
|
```nginx
|
||||||
server {
|
server {
|
||||||
listen 80 default_server;
|
listen 80 default_server;
|
||||||
server_name example.tld;
|
server_name example.tld;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user