Add hass exposure for smartthings connection

This commit is contained in:
Roberto Alsina 2022-09-29 15:58:47 -03:00
parent 7ca1c5f7c4
commit 5982eae329
2 changed files with 19 additions and 1 deletions

View File

@ -7,7 +7,7 @@ COPY . ./
FROM alpine:latest as tailscale
WORKDIR /app
COPY . ./
ENV TSFILE=tailscale_1.24.2_amd64.tgz
ENV TSFILE=tailscale_1.28.0_amd64.tgz
RUN wget https://pkgs.tailscale.com/stable/${TSFILE} && tar xzf ${TSFILE} --strip-components=1
COPY . ./

View File

@ -51,3 +51,21 @@ server {
internal;
}
}
server {
listen 8080;
listen [::]:8080;
server_name hass.ralsina.me;
location / {
proxy_pass http://pinky.ralsina.github.beta.tailscale.net:8123;
proxy_set_header X-Forwarded-Host $http_host;
# WebSocket support
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}