Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run Openhab Cloud (Docker) behind reverse proxy (SSL issue) #464

Open
SchattenWolf2008 opened this issue Jun 25, 2024 · 0 comments
Open

Comments

@SchattenWolf2008
Copy link

SchattenWolf2008 commented Jun 25, 2024

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:
image

Unable to login:

image

docker-compose.yml (experimental, will most likely reset everything)

image

config.json:

image

traefik.toml:

image

run-app.sh:

image

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)

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant