trango-self-hosted icon indicating copy to clipboard operation
trango-self-hosted copied to clipboard

Unable to add service to android app.

Open Dudu514 opened this issue 3 years ago • 2 comments

Hi, for some reason im not able to add my own server to the android app. im getting: "Invalid server, please try with valid server".

I did the manual installation (Debian + git clone etc...).

Right now im able to access Trango from a webpage (locally) but not from the mobile app (on the same Network)

Im trying to figure why i get this error in the android app. but when i access my server from https in a browser on the same device, everything work fine.

The only thing i changed on my end is the cert. it use (i use my own), a FQDN to the service (chat.example.com:PORT), port on wich websocket operate and port for NGINX.

Any thaught? Thanks.

Dudu514 avatar Nov 22 '20 18:11 Dudu514

Hello, Andriod app verifies the server by calling an API which should be running on port 8081. I have updated the README please have a look. Also, check your Nginx configuration and add the below configuration if missing.

location /checkurl { proxy_pass http://localhost:8081/checkurl; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection 'upgrade'; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; }

mmurtaznaqvi avatar Nov 23 '20 05:11 mmurtaznaqvi

That's where i was putting effort in the investigation (/checkurl) when i was saw the type of error i had in the android app. And during these investigation i found that nothing was running on port 8081.

Between my post and now i fixed my problem using the docker image / container.

But, i tired the to re-install the server. As i did the first time.

I saw that you added "python3 api.py &" to the deployment procedure and that's pretty much what was missing from my installation.

Now it's running flawlessly with my FQDN, own cert and custom port.

Thanks for the support! Keep up the good work! :)

Dudu514 avatar Nov 23 '20 12:11 Dudu514