openwallet-foundation / acapy-endorser-service

endorser-service
https://wiki.hyperledger.org/display/aries
Apache License 2.0
6 stars 11 forks source link

NGrok setup for local use with indy tails server #51

Open loneil opened 9 months ago

loneil commented 9 months ago

Using the startup instructions in: https://github.com/hyperledger/aries-endorser-service?tab=readme-ov-file#running-locally

won't really work as-is any more as Indy Tails Server needs the ngrok auth token as well. And if you use the same auth token in the 2 contexts

  1. Indy Tails Server
  2. Endorser Service

You will get the issue about simultaneous ngrok agent sessions

from docker-ngrok-endorser-agent container:
2024-02-16 16:16:45 ERROR:  authentication failed: Your account is limited to 1 simultaneous ngrok agent session.
2024-02-16 16:16:45 ERROR:  You can run multiple tunnels on a single agent session using a configuration file.
2024-02-16 16:16:45 ERROR:  To learn more, see https://ngrok.com/docs/secure-tunnels/ngrok-agent/reference/config/
2024-02-16 16:16:45 ERROR:  
2024-02-16 16:16:45 ERROR:  Active ngrok agent sessions in region 'us-cal-1':
2024-02-16 16:16:45 ERROR:    - ts_2cTI2njhg4tmt7Qe1cltNsx3kxT (23.16.82.223)
2024-02-16 16:16:45 ERROR:  
2024-02-16 16:16:45 ERROR:  ERR_NGROK_108
2024-02-16 16:16:45 ERROR:

Not sure if we could adjust to have one environment that shares it, or at least need to adjust documentation.

loneil commented 8 months ago

cc @WadeBarnes regarding NGrok alternative requirements.