Connecting QField App to a private instance of QFieldCloud

Once I double click on the logo to enter in a custom site and try the same port as the admin https://xxx:8881/admin, I get no result. The app just keeps trying to connect. Which port should we use?

I have the following loaded from the docker

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
 d06dc79dd66c qfieldcloud_worker_wrapper "/entrypoint.sh pyth…" 9 hours ago Up 8 hours 8000/tcp 
qfieldcloud_worker_wrapper_1 4e65e20582f9 mcuadros/ofelia:v0.3.4 "/usr/bin/ofelia dae…" 9 hours ago Up 8 hours
 qfieldcloud_ofelia_1 d0e4208019f8 qfieldcloud_app "/entrypoint.sh pyth…" 9 hours ago Up 8 hours 0.0.0.0:5101->8000/tcp 
qfieldcloud_app_1 3e42a21a9a74 rnwood/smtp4dev:v3 "dotnet /app/Rnwood.…" 9 hours ago Up 8 hours 0.0.0.0:25->25/tcp, 0.0.0.0:143->143/tcp, 0.0.0.0:5100->80/tcp
 qfieldcloud_smtp4dev_1 d97825a86fe7 qfieldcloud_redis "docker-entrypoint.s…" 9 hours ago Up 8 hours 0.0.0.0:6379->6379/tcp 
qfieldcloud_redis_1 85df484b172c nginx:stable "/docker-entrypoint.…" 9 hours ago Up 8 hours 0.0.0.0:8880->80/tcp, 0.0.0.0:8881->443/tcp 
qfieldcloud_nginx_1 aa6f0ddadbca postgis/postgis:13-3.1-alpine "docker-entrypoint.s…" 9 hours ago Up 8 hours 0.0.0.0:5436->5432/tcp 
qfieldcloud_db_1 18e1b12b14cc postgis/postgis:12-3.0 "docker-entrypoint.s…" 9 hours ago Up 8 hours 0.0.0.0:5435->5432/tcp 
qfieldcloud_geodb_1 b5df74b75a11 
minio/minio:RELEASE.2021-07-27T02-40-15Z "/usr/bin/docker-ent…" 9 hours ago Up 8 hours (healthy) 0.0.0.0:8009->9000/tcp, 0.0.0.0:8010->9001/tcp 
qfieldcloud_minio_1 0b26ac3df3fe certbot/certbot "/bin/sh -c 'trap ex…" 9 hours ago Up 8 hours 80/tcp, 443/tcp qfieldcloud_certbot_1

Imported from GitHub discussion by @GetBack2Basics on 2022-03-09T07:36:43Z

GetBack2Basics Hey. You can use a few different ports to connect to your app.

If you used docker-compose.override.local.yml, you can use http://localhost:5001/api/v1 which will connect you directly to a django development server.

In any case the recommanded way is to connect to http://localhost:{WEB_HTTP_PORT}/api/v1 or http://localhost:{WEB_HTTPS_PORT}/api/v1 to use the nginx reverse proxy in front.

WEB_HTTP_PORT and WEB_HTTPS_PORT are environment variable coming from .env file in your QFieldCloud root directory.


Imported from GitHub comment by @suricactus on 2022-03-09T07:58:37Z