Skip to content

Commit

Permalink
Add lighttpd proxy configuration for node-red-contrib-amazon-echo
Browse files Browse the repository at this point in the history
  • Loading branch information
wernersv authored and hobbyquaker committed Jan 6, 2020
1 parent 33dae05 commit 19b09bc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions addon_files/redmatic/etc/lighttpd.conf
Expand Up @@ -5,3 +5,8 @@ $HTTP["url"] =~ "^/(addons/red/).*" {
proxy.header = ( "upgrade" => "enable")
server.errorfile-prefix = "/usr/local/addons/redmatic/www/lighttpd-error-"
}

# Proxy rule to redirect request to amazon-echo-hub node from node-red-contrib-amazon-echo
$HTTP["url"] =~ "(^/description.xml)|(^/api/.*/lights)" {
proxy.server = ( "" => ("localhost" => ("host" => "127.0.0.1", "port" => 6502)))
}

0 comments on commit 19b09bc

Please sign in to comment.