0xPrateek / 0xPrateek/DASH

Location based Ngrok Server configuration of DASH

Offen Anfängerfreundlich
#24 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
jwoc medium
Vorherrschende Sprache
Python
Sterne
33
Forks
15
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

- Ngrok provides servers which are located at 7 different location in the world and for **faster** file transfer we need to select the nearest server and this can be different to a different user.
- The **objective** of this issue is to add one more configuration step to DASH which will ask the user to enter the server which is nearest to them ;

**code** | **country**
`
us | United States
`
`
eu | Europe
`
`
ap  | Asia/Pacific
`
`
au  | Australia
`
`
sa  | South America
`
`
jp  | Japan
`
`
in  | India
`
`

and depending on the selected location we need to update the line number 58 of **[dash.py](https://github.com/0xPrateek/DASH/blob/master/src/dash.py)**

`ngrok = subprocess.Popen(['ngrok','http','-region','**Server Code**' ,str(port)], stdout = subprocess.PIP )`

- For more information about ngrok region configuration you can check [here](https://ngrok.com/docs#config-options)

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

The change is in src/dash.py line 58, where the ngrok subprocess call is made. First, read the existing configuration flow to see where user input is collected. Add a step to prompt for a region code (us, eu, ap, au, sa, jp, in) and pass it as the '-region' argument. Test by running the tool and verifying the ngrok command includes the chosen region.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
flask, python
Bereich
backend, cli
Issue-Typ
Feature
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Veraltet
Klarheit
Klar beschrieben
Anfängerfreundlichkeit
75/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.