Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- map $http_upgrade $connection_upgrade {
- default upgrade;
- '' close;
- }
- server {
- # Update this line to be your domain
- server_name gw.knob.it;
- # These shouldn't need to be changed
- listen 80 http2; # 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";
- access_log /var/log/nginx/hass.access.log;
- error_log /var/log/nginx/hass.error.log;
- proxy_buffering off;
- location /ha/ {
- proxy_pass http://127.0.0.1:8123;
- proxy_set_header Host $host;
- proxy_http_version 1.1;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection $connection_upgrade;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement