-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (18 loc) · 1.14 KB
/
Copy pathMakefile
File metadata and controls
26 lines (18 loc) · 1.14 KB
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
# Convenience targets for local examples (optional)
.PHONY: examples nginx caddy haproxy apache explain clean
examples: nginx caddy haproxy apache explain
nginx:
go run ./cmd/sb29guard generate-proxy --format nginx --mode header-injection --site-host blocked.school.local --backend-url http://127.0.0.1:8080 --bundle-dir dist/nginx
caddy:
go run ./cmd/sb29guard generate-proxy --format caddy --mode header-injection --site-host blocked.school.local --backend-url http://127.0.0.1:8080 --bundle-dir dist/caddy
haproxy:
go run ./cmd/sb29guard generate-proxy --format haproxy --mode header-injection --site-host blocked.school.local --backend-url http://127.0.0.1:8080 --bundle-dir dist/haproxy
apache:
go run ./cmd/sb29guard generate-proxy --format apache --mode header-injection --site-host blocked.school.local --backend-url http://127.0.0.1:8080 --bundle-dir dist/apache
explain:
go run ./cmd/sb29guard generate-explain-static --out-dir dist/explain
# Remove generated bundles (keep dist/README.md)
clean:
@echo Cleaning dist/
@find dist -mindepth 1 -maxdepth 1 -type d -exec rm -rf {} +
@find dist -maxdepth 1 -type f ! -name README.md -exec rm -f {} +