I am trying to deploy jitsi docker with letsencrypt certificate over local network (no internet connection)

I try to deploy jitsi docker with letsencrypt certificate on LAN (No Internet connection) but not able deployed successfully.

This is my ENV file changes

# Directory where all configuration will be stored
CONFIG=~/.jitsi-meet-cfg
# Exposed HTTP port
HTTP_PORT=8000
# Exposed HTTPS port
HTTPS_PORT=8443
# System time zone
TZ=Asia/Kolkata
# Public URL for the web service (required)
PUBLIC_URL=https://XXXXXX:8443
#Docker Host
DOCKER_HOST_ADDRESS=192.168.X.X
# Enable Let's Encrypt certificate generation
ENABLE_LETSENCRYPT=1
# Domain for which to generate the certificate
LETSENCRYPT_DOMAIN=XXXXXX
# E-Mail for receiving important account notifications (mandatory)
LETSENCRYPT_EMAIL=prashant@XXXXXX.com
# Use the staging server (for avoiding rate limits while testing)
LETSENCRYPT_USE_STAGING=1
JVB_STUN_SERVERS=https://XXXXXX:8443
# Media port for the Jitsi Videobridge
JVB_PORT=10000
ENABLE_HTTP_REDIRECT=1
ENABLE_HSTS=1
ENABLE_SCTP=1
ENABLE_COLIBRI_WEBSOCKET=0
ENABLE_XMPP_WEBSOCKET=0

Output:

web_1      | [Thu Jul  8 16:49:18 IST 2021] Please refer to https://www.gnu.org/software/wget/manual/html_node/Exit-Status.html for error code: 4
web_1      | [Thu Jul  8 16:49:18 IST 2021] Can not init api.
web_1      | [Thu Jul  8 16:49:18 IST 2021] Using CA: https://acme-staging-v02.api.letsencrypt.org/directory
web_1      | [Thu Jul  8 16:49:18 IST 2021] Run pre hook:'if [[ -f /var/run/s6/services/nginx ]]; then s6-svc -d /var/run/s6/services/nginx; fi'
web_1      | [Thu Jul  8 16:49:18 IST 2021] Standalone mode.
web_1      | [Thu Jul  8 16:49:18 IST 2021] Single domain='XXXX'
web_1      | [Thu Jul  8 16:49:18 IST 2021] Getting domain auth token for each domain
web_1      | [Thu Jul  8 16:49:18 IST 2021] Getting webroot for domain='XXXX'
web_1      | [Thu Jul  8 16:49:18 IST 2021] Getting new-authz for domain='XXXX'
web_1      | [Thu Jul  8 16:49:28 IST 2021] Please refer to https://www.gnu.org/software/wget/manual/html_node/Exit-Status.html for error code: 4
web_1      | [Thu Jul  8 16:49:28 IST 2021] Can not init api.
web_1      | [Thu Jul  8 16:49:38 IST 2021] Could not get nonce, let's try again.
web_1      | [Thu Jul  8 16:49:50 IST 2021] Could not get nonce, let's try again.
web_1      | [Thu Jul  8 16:50:02 IST 2021] Could not get nonce, let's try again.

helm me to understand what’s wrong with my setup.

Is it possible to deploy jitsi docker with letsencrypt over local network (No Internet connection).

You cannot obtain let’s encrypt certificate with no internet connection.

1 Like

Thank you for reply!

usecase:

  • Jitsi docker deployed on local network(no internet connection).

  • React native app accessing jitsi client (with internet and without internet connection) with the same network connection.

The problem is that the React native application is unable to access the jitsi client on the local network.


I deployed jitsi docker on local network without letsencrypt certificate but with that React native app not able to connect jitsi client with ip address.


can you please guid me what I need to do?

How can I deploy jitsi docker on the local network so that it will be accessible through the react native application in both cases (with Internet and without Internet connection)

Thanks!

You need a valid certificate to use the mobile app

According to this Jitsi with self signed certificate

android can’t work with self signed certificate Right?

Can you please suggest any other way to add a certificate for mobile phone?

You can’t use a self-signed certificate for mobile WebRTC. You need a valid certificate with full chain.

Yes, but I need to deploy jitsi on the local network without an internet connection on this network.

So my question is full chain of certificate work on the LAN without Internet connectivity?

Yes it works. You can get a paid certificate for your domain from some known provider and use that with your webserver. The free let’s encrypt certificates require internet connectivity to verify you own the domain name for which you request a certificate.

1 Like

OK, let me try with paid paid certificate.

I deployed jitsi docker on local network (With internet connection) it works on my device as well as android device browser but not working on our react-native application as well as jitsi application.

can you please help me on this?