@@ -56,7 +56,7 @@ The active image is *generic* in the sense that it should work on any platform.
5656
5757The normal IOTstack commands apply to Home Assistant Container such as:
5858
59- ``` bash
59+ ``` console
6060$ cd ~ /IOTstack
6161$ docker-compose up -d
6262```
@@ -127,7 +127,7 @@ your RPi hostname is raspberrypi)
127127
1281285 . Start the swag container, this creates the file to be edited in the next step:
129129
130- ```bash
130+ ```console
131131 $ cd ~/IOTstack
132132 $ docker-compose up -d
133133 ```
@@ -136,7 +136,7 @@ your RPi hostname is raspberrypi)
136136
1371376 . Enable reverse proxy for ` raspberrypi.local ` . ` homassistant.* ` is already by default. and fix homeassistant container name ("upstream_app"):
138138
139- ```bash
139+ ```console
140140 $ cd ~/IOTstack
141141 $ sed -e 's/server_name/server_name *.local/' \
142142 volumes/swag/config/nginx/proxy-confs/homeassistant.subdomain.conf.sample \
@@ -146,7 +146,7 @@ your RPi hostname is raspberrypi)
1461467 . Forward to correct IP when target is a container running in "network_mode:
147147 host" (like Home Assistant does):
148148
149- ```bash
149+ ```console
150150 cd ~/IOTstack
151151 cat << 'EOF' | sudo tee volumes/swag/config/custom-cont-init.d/add-host.docker.internal.sh
152152 #!/bin/sh
@@ -164,7 +164,7 @@ your RPi hostname is raspberrypi)
1641648 . (optional) Add reverse proxy password protection if you don't want to rely
165165 on the HA login for security, doesn't affect API-access:
166166
167- ```bash
167+ ```console
168168 $ cd ~/IOTstack
169169 $ sed -i -e 's/#auth_basic/auth_basic/' \
170170 volumes/swag/config/nginx/proxy-confs/homeassistant.subdomain.conf
@@ -198,7 +198,7 @@ your RPi hostname is raspberrypi)
198198
199199 Or from the command line in the RPi :
200200
201- ` ` ` bash
201+ ` ` ` console
202202 $ curl --resolve homeassistant.<yourdomain>.duckdns.org:443:127.0.0.1 \
203203 https://homeassistant.<yourdomain>.duckdns.org/
204204 ` ` `
0 commit comments