openhab-cloud
openhab-cloud copied to clipboard
Run Openhab Cloud (Docker) behind reverse proxy (SSL issue)
Hello dear Openhabians.
I want to install Openhab-Cloud inside a docker container, so that it runs behind a reverse proxy and does not handle any SSL at all.
So that basically the openhab-cloud installation is plain HTTP, and only listens on a internal IP address, where the reverse proxy connects to and handles the SSL encryption and exposes it to the internet.
The reason of why I want to do that is, that I want openhab to be containerized, and that it runs via the reverse proxy, so that it shares the same certificate and configurations of the proxy.
I have made some attempts where I tried to remove some stuff from docker-compose and modify some files, even attempting to just replace traefik with nginx (inside the container) completely.
Tho I have only gotten to the point where everything seems to load normal, tho a login was not possible.
I don't have any experience with traefik, and I don't want the container to handle or issue any certificates, I just want it to run over my reverse proxy.
Can someone help me and explain me how I can achieve this setup?
Thank you.
This is the current state of my experimental setup, tho I don't think this is a solution.
Appears to load normally:
Unable to login:
docker-compose.yml (experimental, will most likely reset everything)
config.json:
traefik.toml:
run-app.sh:
install-run-app.sh: (attempt to install and use nginx as reverse proxy inside the container, in order to make a connection work to the server's reverse proxy)