Self hosted issue with incorrect action links generating in HTML pages

#1

Hello!

i’ve decided try to install self-hosted instance. everything looks fine, except it is not working for me properly :frowning:

  • containers up and running and accessible at internal IP:8888
  • container with SSL apache configured at external IP:32777 proxying works fine, pages accessible, but…

when i accessing externally https://my.site:32777/gbridge/gapi/auth i see login form which has action= http://my.site:32777/gapi/auth

oblivious i can not login and gets authentificated, because action has wrong protocol (not https) and wrong path /gapi/auth instead of /gbridge/gapi/auth

is this my configuration error any ideas?

0 Likes

#2

as i have no idea what the problem is, i installed ssl certificate right into gbridge_web container and exposed it directly. authentification passes but failed to add to google home app :frowning:

Linking account…
Can not update, check connection.

this is in the logs:
web_1 | 66.102.9.19 - - [02/Feb/2019:21:13:58 +0000] “POST /gapi/ HTTP/1.1” 301 3869 “-” “Mozilla/5.0 (compatible; Google-Cloud-Functions/2.1; +http://www.google.com/bot.html)”
web_1 | 66.102.9.19 - - [02/Feb/2019:21:13:58 +0000] “GET /gapi HTTP/1.1” 200 1045 “-” “Mozilla/5.0 (compatible; Google-Cloud-Functions/2.1; +http://www.google.com/bot.html)”
web_1 | 66.102.9.22 - - [02/Feb/2019:21:13:59 +0000] “POST /gapi/ HTTP/1.1” 301 3869 “-” “Mozilla/5.0 (compatible; Google-Cloud-Functions/2.1; +http://www.google.com/bot.html)”
web_1 | 66.102.9.22 - - [02/Feb/2019:21:13:59 +0000] “GET /gapi HTTP/1.1” 200 1045 “-” “Mozilla/5.0 (compatible; Google-Cloud-Functions/2.1; +http://www.google.com/bot.html)”
web_1 | 66.102.9.19 - - [02/Feb/2019:21:13:59 +0000] “POST /gapi/ HTTP/1.1” 301 619 “-” “Mozilla/5.0 (compatible; Google-Cloud-Functions/2.1; +http://www.google.com/bot.html)”
web_1 | 66.102.9.22 - - [02/Feb/2019:21:14:00 +0000] “GET /gapi HTTP/1.1” 200 1047 “-” “Mozilla/5.0 (compatible; Google-Cloud-Functions/2.1; +http://www.google.com/bot.html)”

at the “account linking” page of webserver appears record “link with google”, but nothing in the google home :frowning:

0 Likes

#3

That’s my problem too. Do you have any solution for it?

0 Likes

#4

no. as you see no one responded…

0 Likes

#5

Have you tried to modify the php content in the web container?

0 Likes

#6

it is possible, but i have no free time and no will to research why this happens and how to fix this, because next error will be pairing with google failed and no solution too.

0 Likes

#7

Try to add something like this to your apache config:

Header edit Location ^http://thirdparty.com/app/ https://thirdparty.com/app/

The php page will stay in https.

For the link, I removed “gbridge” from my config (google action & http config) as the link generated in the page can’t guess if it’s a direct connection or a reverse proxy.

0 Likes