Uploaded image for project: 'Qt Cloud'
  1. Qt Cloud
  2. CLOUD-13

Ngrok wrapper

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • P2: Important
    • None
    • None
    • General, NGrok

    Description

      Related to #3.

          1. Creating an ngrok tunnel:

      This is done via python package "pyngrok" (`pip install pyngrok`).

      ```
      import pyngrok

      pyngrok.ngrok.kill()

      1. ^ kill existing tunnels

      pyngrok.ngrok.set_auth_token (<user_ngrok_authtoken>)

      tunnel_url = pyngrok.ngrok.connect(8086, bind_tls=True)
      ```

      At this moment, in the MVP, the ngrok_authtoken is obtained manually by creating an account on ngrok and copying the token to `.env` file.

      In future, we should use Ngrok API to create a user with Qt account email address and obtain the token also using the Ngrok API.

      Another alternate of this process is to ask the user to create an account and paste their `ngrok_authtoken` in the #4 (Configuration wizard).

      Attachments

        Activity

          People

            as33ms Aseem Shakuntal
            anttisiukola Antti Siukola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: