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

Anything I can do about SSL support? #35

Closed
albi opened this issue Feb 19, 2018 · 1 comment
Closed

Anything I can do about SSL support? #35

albi opened this issue Feb 19, 2018 · 1 comment

Comments

@albi
Copy link

albi commented Feb 19, 2018

Got a RasPi 3 running with Homebridge and Config UI X, but want to use HTTPS for the webinterface.

@oznu
Copy link
Member

oznu commented Feb 19, 2018

Hi @albi,

I use Nginx which acts as a reverse proxy to provide SSL support to homebridge-config-ui-x and several other services I have running.

There are plenty of guides on the internet showing how to set this up; so I won't write another.

I will provide the location block you'll need if you choose to go with Nginx though, since you need to add a few extra lines to support WebSockets which homebridge-config-ui-x uses heavily:

location / {
    proxy_pass              http://localhost:8080;
    proxy_http_version      1.1;
    proxy_buffering         off;
    proxy_set_header        Host $host;
    proxy_set_header        Upgrade $http_upgrade;
    proxy_set_header        Connection "Upgrade";
    proxy_set_header        X-Real-IP $remote_addr;
    proxy_set_header        X-Forward-For $proxy_add_x_forwarded_for;
}

@oznu oznu closed this as completed Feb 19, 2018
This was referenced Mar 4, 2018
@oznu oznu mentioned this issue May 8, 2018
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

2 participants