toddaustin07 / edgebridge

Forwarding Bridge Server for SmartThings Edge drivers
Apache License 2.0
39 stars 19 forks source link

edgebridge extension via apache #10

Open sgraystar opened 1 year ago

sgraystar commented 1 year ago

edgbridge still going strong here. This is more of an fyi.

I am changing our old home automation software over to a new standalone device that uses LUA as the scripting language, or JavaScript, so no python.

There was already apache running on the same NUC as edgebridge so a couple of lines added to the apache config now allows access to the edgebridge instance from any LAN device. Happy days. Config lines below, although this forum editor clashes with config tag markers so comments and angle brackets have been replaced.

= Proxy calls towards Edgebridge from different LAN devices so that edgebridge only sees the server ip address = From http://*:8089/the_rest = To http://server_ip_address:8088/the_rest = Location is optional Listen 8089 [VirtualHost *:8089] [Location /] Require ip 192.168.1.0/24 [/Location] ProxyPass / http://192.168.1.23:8088/ ProxyPassReverse / http://192.168.1.23:8088/ [/VirtualHost]