Code Monkey home page Code Monkey logo

Comments (2)

zegerk avatar zegerk commented on July 4, 2024

I also had some issues with that, url redirecting is tricky - after setting up letsencrypt for the SSL cert this ended up being my Nginx config:

events {
} 

http {
    resolver 127.0.0.11 ipv6=off;

    server {
    	listen 443 ssl;

    	ssl_certificate /etc/letsencrypt/live/domain.com/fullchain.pem;
    	ssl_certificate_key /etc/letsencrypt/live/domain.com/privkey.pem;

	ssl_protocols TLSv1.1 TLSv1.2;

	ssl_prefer_server_ciphers on;
	ssl_ciphers ECDH+AESGCM:ECDH+AES256:ECDH+AES128:DHE+AES128:!ADH:!AECDH:!MD5;

    	#usually your public DNS name
    	server_name domain.com;

    	#SSL-settings and generic server options here

    	#the IP of the Docker host gBridge is running on
    	set $gbridge_host gbridge_web_1;

   	#the port you've defined for the gBridge web interface
    	set $gbridge_port 80;

        location ~ ^/gapi(/.*)?$ {
        	proxy_set_header Host $host;
        	proxy_set_header X-Real-IP $remote_addr;
        	proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        	proxy_set_header X-Forwarded-Proto https;

        	proxy_pass http://$gbridge_host:$gbridge_port/gapi$1$is_args$args;
        }
    }
}

Note also to set the following in the docker config for gBridge web service:

         PROXY_URL: 'https://domain.com/gapi'
         PROXY_SCHEME: 'https'

from gbridge.

nayneyT avatar nayneyT commented on July 4, 2024

Hi everybody.

If you use use NodeRed as part of your home assistant setup then I suggest you take a look at https://github.com/mikejac/node-red-contrib-google-smarthome and https://flows.nodered.org/node/node-red-contrib-google-smarthome

It's an absolute shame that this project died.

from gbridge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.