/
Makefile
60 lines (42 loc) · 1.62 KB
/
Makefile
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
backend:
go run ./main.go server
web:
cd frontend; npm start;
singbox:
go run -tags with_gvisor,with_quic,with_wireguard,with_utls,with_reality_server,with_clash_api,with_v2ray_api,with_grpc ./ singbox
httpserver:
go run ./ httpserver
local-singbox:
sing-box version && sing-box run -c /Users/guestuser/go/src/github/logv2fs/development/singbox/transit-client.json
local-singbox-2rd:
sing-box version && sing-box run -c /Users/guestuser/go/src/github/logv2fs/development/singbox/transit-2rd-client.json
install:
go build; go install;
certs:
./setup-script-w8/generateCert.sh
v2ray-local:
./development/v2ray-macos-v4.23.4/v2ray -config ./development/local/config.json
link:
ln -s /Users/guestuser/go/src/github/logv2fs/development/nginx/grpc_nginx_80.conf /opt/homebrew/etc/nginx/servers;
nginx -s reload;
nginx-senario-3:
ln -s /Users/guestuser/go/src/github/logv2fs/development/nginx/senario-3.conf /opt/homebrew/etc/nginx/servers;
nginx -s reload;
nginx-senario-4:
ln -s /Users/guestuser/go/src/github/logv2fs/development/nginx/senario-4.conf /opt/homebrew/etc/nginx/servers;
nginx -s reload;
nginx-senario-5:
ln -s /Users/guestuser/go/src/github/logv2fs/development/nginx/senario-5.conf /opt/homebrew/etc/nginx/servers;
nginx -s reload;
server:
go run ./ GRPCServer --address 0.0.0.0:50051
server-tls:
go run ./ GRPCServer --address 0.0.0.0:50051 --tls
server-tls-auth:
go run ./ GRPCServer --address 0.0.0.0:50051 --tls --auth
client:
go run ./ GRPCClient --address 0.0.0.0:50051
client-tls:
go run ./ GRPCClient --address 0.0.0.0:50051 --tls
client-nginx-tls:
go run ./ GRPCClient --address 0.0.0.0:8070 --tls