Advertisement
Guest User

Untitled

a guest
Apr 9th, 2020
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # make sure that your dns has a cname set for homeassistant and that your homeassistant container is not using a base url
  2.  
  3. server {
  4.     listen 443 ssl;
  5.     server_name homeassistant.*;
  6.     include /config/nginx/ssl.conf;
  7.  
  8.     location / {
  9.         proxy_pass http://192.168.1.9:8123;
  10.         proxy_set_header Host $host;
  11.  
  12.         proxy_http_version 1.1;
  13.         proxy_set_header Upgrade $http_upgrade;
  14.         proxy_set_header Connection "upgrade";
  15.     }
  16.     location /api/websocket {
  17.         proxy_pass http://192.168.1.9:8123/api/websocket;
  18.         proxy_set_header Host $host;
  19.  
  20.         proxy_http_version 1.1;
  21.         proxy_set_header Upgrade $http_upgrade;
  22.         proxy_set_header Connection "upgrade";
  23.  
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement