Skip to content

Commit 83ebaea

Browse files
committed
diet
1 parent b5054fe commit 83ebaea

File tree

2 files changed

+11
-20
lines changed

2 files changed

+11
-20
lines changed

payload_filter/docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services:
55
image: nginx
66
container_name: nginx
77
ports:
8-
- 8080:8080
8+
- 8080:80
99
volumes:
1010
- ./nginx/conf.d:/etc/nginx/conf.d
1111

+10-19
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,29 @@
11
map $request_body $matching {
2-
include /etc/nginx/conf.d/matching;
32
default 'not_matching';
3+
include /etc/nginx/conf.d/matching;
44
}
55

66
server {
7-
listen 8080;
87
default_type text/plain;
98

109
location / {
1110
proxy_set_header 'X-Matching' $matching;
12-
proxy_pass http://fork;
11+
proxy_pass http://localhost/fork;
1312
}
1413

15-
location /ping {
16-
return 200 'pong';
17-
add_header Content-Type text/plain;
18-
}
19-
20-
}
21-
22-
upstream fork {
23-
server 127.0.0.1:3675;
24-
}
25-
server {
26-
default_type text/plain;
27-
listen 3675;
28-
29-
location / {
14+
location /fork {
3015
try_files /unknown-file-to-trigger-redirect /$http_x_matching;
3116
}
3217
location /matching {
3318
proxy_pass http://host.docker.internal:5015;
3419
}
3520
location /not_matching {
3621
proxy_pass http://host.docker.internal:5066;
37-
}
22+
}
23+
24+
location /ping {
25+
return 200 'pong';
26+
add_header Content-Type text/plain;
27+
}
28+
3829
}

0 commit comments

Comments
 (0)