Skip to content

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

@SchattenWolf2008

Description

@SchattenWolf2008

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions