issue with webapp in local network without internet access

25 views
Skip to first unread message

Leo Chang

unread,
Jul 18, 2025, 7:19:32 AMJul 18
to Tinode General

my docker-compose file

  mysql:
    image: mysql:8.0
    container_name: tinode-mysql
    volumes:
      - ./data:/var/lib/mysql
    environment:
      MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
    networks:
      - tinode-net

  tinode:
    image: tinode/tinode-mysql:latest
    container_name: tinode-server
    ports:
      - "6060:6060"
    volumes:
      - ./uploads:/opt/tinode/uploads
      - ./logs:/var/log
      - ./webapp:/opt/tinode/webapp
    environment:
      EXT_STATIC_DIR: /opt/tinode/webapp/static
    depends_on:
      - mysql
    networks:
      - tinode-net

networks:
  tinode-net:
    driver: bridge``

https://github.com/tinode/tinode-js/archive/master.zip  to  /opt/tinode/webapp/static as below instruction suggested

Unpack JS client to a directory, for instance $HOME/tinode/webapp/
to the same directory.

I run tinode in a network without internet access. when visiting tinode's website like xx.xx.xx.xx:6060,
webapp works abnormal.
It seems that browser needs to  download some js file from internet.But I don't have internet access.
This caused some errors.

I downloaded those js files and put them  into  /opt/tinode/webapp/static ,still the same error .
Is there any suggestion to solve this problem ? Thanks.

Ba Xin

unread,
Jul 18, 2025, 7:46:24 AMJul 18
to tin...@googlegroups.com
Thanks 

Leo Chang <sunny...@gmail.com>于2025年7月18日 周五19:19写道:
--
You received this message because you are subscribed to the Google Groups "Tinode General" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tinode+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/tinode/1cfb200c-8011-4a05-8ed4-aa798637ae21n%40googlegroups.com.

Gene

unread,
Jul 18, 2025, 7:49:36 AMJul 18
to Tinode General
Open index.html (or index-dev.html) and look at the external links in the <head> section, like this:


<!-- Google's Roboto font -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,400i,500,700,700i" />
<!-- Google's material design icons -->
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" />
...
<!-- Polyfill Intl.Segmenter for Firefox 124 and earlier. This can be safely removed in the end of 2024. -->
<script crossorigin="anonymous" src="https://polyfill-fastly.io/v3/polyfill.min.js?features=Intl.Segmenter"></script>
<!-- ReactJS -->
<script crossorigin="anonymous" src="https://cdn.jsdelivr.net/npm/react@18/umd/react.development.js"></script>
<script crossorigin="anonymous" src="https://cdn.jsdelivr.net/npm/react-dom@18/umd/react-dom.development.js"></script>
<!-- React-Intl for translations -->
<script crossorigin="anonymous" src="https://cdn.jsdelivr.net/npm/react-intl@7/react-intl.iife.js"></script>
<!-- Displaying QR code with ID of the topic -->
<script crossorigin="anonymous" src="https://cdn.jsdelivr.net/npm/qrco...@1.0.0/qrcode.js"></script>
 
Copy these files to your local disk and adjust the URLs in the  index.html (or index-dev.html) to point to your local files.
Reply all
Reply to author
Forward
0 new messages