Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # make sure that your dns has a cname set for homeassistant and that your homeassistant container is not using a base url
- server {
- listen 443 ssl;
- server_name homeassistant.*;
- include /config/nginx/ssl.conf;
- location / {
- proxy_pass http://192.168.1.9:8123;
- proxy_set_header Host $host;
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- }
- location /api/websocket {
- proxy_pass http://192.168.1.9:8123/api/websocket;
- proxy_set_header Host $host;
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement