DewGew / Domoticz-Google-Assistant

Google Assistant for Domoticz
https://github.com/DewGew/Domoticz-Google-Assistant/wiki
Apache License 2.0
79 stars 41 forks source link

Make contextroot configurable #35

Closed ronsmits closed 4 years ago

ronsmits commented 5 years ago

when you have one "gateway server" like nginx or apache that proxies from the big bad internet to the safety of the internal network. One of the biggest challenges is setting up all forwarding.

DGA forces to have the context root at /. Can this be changed into a configuration?

DewGew commented 5 years ago

You want to spilt the files to 2 folder? 1 for http.server then 1 for smarthome?

ronsmits commented 5 years ago

I use nginx as gatekeeper so curently I have the following port forwardings: notmydomain.com/otg -> to an internal owntrack server notmydomain.com/seafile -> internal seafile server notmydomain.com/ -> domoticz-google-assistent.

I would love to be able to do "notmydomain.com/dga" -> domoticz-google-assistant.

I tried to solve it with port-forwarding and rewriting. but I could not get it to work.

I wrote the owntrack-server myself and I made the context root a configuration variable. made my life easier (http://github.com/ronsmits/owntrackserver)

DewGew commented 5 years ago

This i just a simple http server. But you already have nginx, make a reverse proxy to dga. I do like that on my synology