File size: 610 Bytes
10030dd
 
5556cef
10030dd
6a1c2ad
5f3cfbd
b8a92eb
9dd7875
 
6058d8d
7f5bbc2
07cae57
c535322
07cae57
a553b17
911e7c9
 
563235d
a553b17
b8a92eb
ea90979
8350c3a
5f3cfbd
f52f675
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash


export PATH=$PATH:$HOME/socks-server/node-v20.15.0-linux-x64/bin

echo $PWD

ifconfig

curl -v -k http://[240e:358:92a:2c00:221:ccff:fe6e:5321]/

openssl genpkey -algorithm RSA -out private.key
openssl req -new -key private.key -out csr.pem -subj "/CN=localhost"
openssl req -x509 -days 365 -key private.key -in csr.pem -out localhost.crt

export SSL_CERT_FILE=$HOME/socks-server/localhost.crt
export NODE_EXTRA_CA_CERTS=$HOME/socks-server/localhost.crt
export NODE_TLS_REJECT_UNAUTHORIZED=0
ls -lh

npm install -g npm@10.8.3
npm install wrangler@3.60.0
npm install cross-env
npm i
npm run start