Site updated at 2017-04-24 21:51:40 UTC
This commit is contained in:
parent
63a8e3d392
commit
3acfb1d6fb
26 changed files with 41 additions and 42 deletions
|
@ -118,8 +118,7 @@ sudo ln ../sites-available/hass default
|
|||
server_name example.com;
|
||||
|
||||
# These shouldn't need to be changed
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server ipv6only=on;
|
||||
listen [::]:80 default_server ipv6only=off;
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
|
@ -139,7 +138,7 @@ sudo ln ../sites-available/hass default
|
|||
|
||||
|
||||
# These shouldn't need to be changed
|
||||
listen 443 default_server;
|
||||
listen [::]:443 default_server ipv6only=off; # if your nginx version is >= 1.9.5 you can also add the "http2" flag here
|
||||
add_header Strict-Transport-Security "max-age=31536000; includeSubdomains";
|
||||
ssl on;
|
||||
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue