Kodi Community Forum
webinterface over https? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Web Interfaces (https://forum.kodi.tv/forumdisplay.php?fid=156)
+---- Thread: webinterface over https? (/showthread.php?tid=325236)



webinterface over https? - tuxfuxch - 2017-12-09

Hi all,
i am playing around with webspeech. unfortunatelly access to the microphone works only in chrome when the connection to the webserver is over https. on localhost it works, but not from an other device connected.
is it possible to server a webinterface over https?


RE: webinterface over https? - wsnipex - 2017-12-09

That is not currently implemented in kodi. I starting working on that some time ago, but never finished it: https://github.com/wsnipex/xbmc/commit/375ad2c3e103bf56363b02bc65c94587445c1476


RE: webinterface over https? - tuxfuxch - 2017-12-10

Thanks for the fast reply. in case you want to finish your work, you know that at least someone would use it Smile


RE: webinterface over https? - tuxfuxch - 2017-12-11

i went with a reverse proxy which seems to work (just shortly tested).
it's definitely not a good solution to configure for lets say my mum, but well enough for me and testing. in case anyone needs a reverse proxy to kodi (LAN) this is my configuration with a self signed certrificate:
my kodi serves on 8088 http
nginx is set up on kodi machine
i connect with for example my mobile phone to the kodi machine on port 8087 https
nginx config:

Code:
server {
        listen 8087  ssl;
        ssl_certificate           /etc/nginx/cert.crt;
        ssl_certificate_key       /etc/nginx/cert.key;
        error_page 497  https://$host:$server_port$request_uri;
        location /{
            proxy_pass http://localhost:8088;
            proxy_redirect off;
            proxy_set_header Host $host:$server_port;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Ssl on;
        }
        location ~ ^/(image|jsonrpc) {
            proxy_pass http://localhost:8088;
            proxy_redirect off;
            proxy_set_header Host $host:$server_port;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Ssl on;

        }       
}