mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 22:57:17 +00:00
Update nginx docs (#4603)
This commit is contained in:
parent
e94b4ec006
commit
ff4cb23f2a
@ -66,20 +66,23 @@
|
|||||||
# port 8123.
|
# port 8123.
|
||||||
#
|
#
|
||||||
##
|
##
|
||||||
|
http {
|
||||||
|
map $http_upgrade $connection_upgrade {
|
||||||
|
default upgrade;
|
||||||
|
'' close;
|
||||||
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
# Update this line to be your domain
|
# Update this line to be your domain
|
||||||
server_name example.com;
|
server_name example.com;
|
||||||
|
|
||||||
|
|
||||||
# These shouldn't need to be changed
|
# These shouldn't need to be changed
|
||||||
listen 80 default_server;
|
listen 80 default_server;
|
||||||
listen [::]:80 default_server ipv6only=on;
|
listen [::]:80 default_server ipv6only=on;
|
||||||
return 301 https://$host$request_uri;
|
return 301 https://$host$request_uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
server {
|
|
||||||
# Update this line to be your domain
|
# Update this line to be your domain
|
||||||
server_name example.com;
|
server_name example.com;
|
||||||
|
|
||||||
@ -109,5 +112,9 @@ server {
|
|||||||
proxy_pass http://localhost:8123;
|
proxy_pass http://localhost:8123;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_redirect http:// https://;
|
proxy_redirect http:// https://;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection $connection_upgrade;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user