-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
47 lines (35 loc) · 1.67 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
test:
go test -race ./...
go run -race . version
test-local:
go run -race . -h2 -config-dir sampleConfig/ -redirect-port :8081 -https-port :8443 -http-port :8001
docker-test:
GOOS=linux go build
docker build . --tag fortio/proxy:test
docker run -v `pwd`/sampleConfig:/etc/fortio-proxy-config fortio/proxy:test
dev-prefix:
go run -race . -h2 -http-port 8001 -https-port disabled -redirect-port disabled\
-loglevel debug \
-routes.json '[{"prefix":"/fgrpc", "destination":"http://localhost:8079/"}, {"host":"*", "destination":"http://localhost:8080/"}]'
dev-prefix-only:
go run -race . -http-port 8001 -https-port disabled -redirect-port disabled\
-loglevel debug \
-routes.json '[{"prefix":"/debug", "destination":"http://localhost:8080/"}]'
dev-grpc:
go run -race . -h2 -http-port 8001 -https-port disabled -redirect-port disabled\
-loglevel debug \
-routes.json '[{"host":"*", "destination":"http://localhost:8079/"}]'
dev-h2c:
go run -race . -h2 -http-port 8001 -https-port disabled -redirect-port disabled\
-debug-host "debug.fortio.org" \
-routes.json '[{"host":"*", "destination":"http://localhost:8080/"}]'