Skip to content

Commit ed04c43

Browse files
committed
update reverse proxy
1 parent 13d53de commit ed04c43

File tree

3 files changed

+62
-108
lines changed

3 files changed

+62
-108
lines changed

Caddyfile

Lines changed: 51 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,74 @@
1-
http://localhost
2-
3-
route /core/* {
4-
uri strip_prefix /core
5-
reverse_proxy core:4200
1+
http://localhost, http://core {
2+
route /* {
3+
reverse_proxy core:4200
4+
}
65
}
76

8-
route /alerts/* {
9-
uri strip_prefix /alerts
10-
reverse_proxy alerts:4200
7+
http://alerts {
8+
route /* {
9+
reverse_proxy alerts:4200
10+
}
1111
}
1212

13-
route /alert_rules/* {
14-
uri strip_prefix /alert_rules
15-
reverse_proxy alert_rules:4200
13+
14+
http://alert-rules {
15+
route /* {
16+
reverse_proxy alert-rules:4200
17+
}
1618
}
1719

18-
route /detection_lists/* {
19-
uri strip_prefix /detection_lists
20-
reverse_proxy detection_lists:4200
20+
http://detection-lists {
21+
route /* {
22+
reverse_proxy detection-lists:4200
23+
}
2124
}
2225

23-
route /cases/* {
24-
uri strip_prefix /cases
25-
reverse_proxy cases:4200
26+
http://cases {
27+
route /* {
28+
reverse_proxy cases:4200
29+
}
2630
}
2731

28-
route /storage/* {
29-
uri strip_prefix /storage
30-
reverse_proxy storage:4200
32+
http://storage {
33+
route /* {
34+
reverse_proxy storage:4200
35+
}
3136
}
3237

33-
route /connected_server/* {
34-
uri strip_prefix /connected_server
35-
reverse_proxy connected_server:4200
38+
http://connected-server {
39+
route /* {
40+
reverse_proxy connected-server:4200
41+
}
3642
}
3743

38-
route /audit_log/* {
39-
uri strip_prefix /audit_log
40-
reverse_proxy audit_log:4200
44+
http://audit-log {
45+
route /* {
46+
reverse_proxy audit-log:4200
47+
}
4148
}
4249

43-
route /file_events/* {
44-
uri strip_prefix /file_events
45-
reverse_proxy file_events:4200
50+
http://file-events {
51+
route /* {
52+
reverse_proxy file_events:4200
53+
}
4654
}
4755

48-
route /preservation_data_service/* {
49-
uri strip_prefix /preservation_data_service
50-
reverse_proxy preservation_data_service:4200
56+
http://preservation-data-service {
57+
route /* {
58+
reverse_proxy preservation-data-service:4200
59+
}
5160
}
5261

53-
route /exfiltration_data_service/* {
54-
uri strip_prefix /exfiltration_data_service
55-
reverse_proxy exfiltration_data_service:4200
62+
http://exfiltration-data-service {
63+
route /* {
64+
reverse_proxy exfiltration-data-service:4200
65+
}
5666
}
5767

58-
route /trusted_activities/* {
59-
uri strip_prefix /trusted_activities
60-
reverse_proxy trusted_activities:4200
68+
http://trusted-activities-service {
69+
route /* {
70+
reverse_proxy trusted-activities:4200
71+
}
6172
}
73+
74+

docker-compose.yml

Lines changed: 1 addition & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services:
66
- ./Caddyfile:/etc/caddy/Caddyfile
77
restart: always
88
ports:
9-
- "4200:4200"
9+
- "4200:80"
1010
depends_on:
1111
core:
1212
condition: service_healthy
@@ -43,12 +43,9 @@ services:
4343
command: mock docs/core.yml -p 4200 -h 0.0.0.0
4444
healthcheck:
4545
test: ["CMD-SHELL", "curl -f http://core:4200 || exit 1"]
46-
# test: ["CMD-SHELL", "curl -f http://localhost:4200/core || exit 1"]
4746
interval: 30s
4847
timeout: 15s
4948
retries: 3
50-
networks:
51-
- api-integration-test-network
5249

5350
alerts:
5451
image: c42/mock-microservice-endpoints:1.0
@@ -63,8 +60,6 @@ services:
6360
interval: 30s
6461
timeout: 15s
6562
retries: 3
66-
networks:
67-
- api-integration-test-network
6863

6964
alert-rules:
7065
image: c42/mock-microservice-endpoints:1.0
@@ -79,8 +74,6 @@ services:
7974
interval: 30s
8075
timeout: 15s
8176
retries: 3
82-
networks:
83-
- api-integration-test-network
8477

8578
detection-lists:
8679
image: c42/mock-microservice-endpoints:1.0
@@ -95,8 +88,6 @@ services:
9588
interval: 30s
9689
timeout: 15s
9790
retries: 3
98-
networks:
99-
- api-integration-test-network
10091

10192
cases:
10293
image: c42/mock-microservice-endpoints:1.0
@@ -111,8 +102,6 @@ services:
111102
interval: 30s
112103
timeout: 15s
113104
retries: 3
114-
networks:
115-
- api-integration-test-network
116105

117106
storage:
118107
image: c42/mock-microservice-endpoints:1.0
@@ -127,8 +116,6 @@ services:
127116
interval: 30s
128117
timeout: 15s
129118
retries: 3
130-
networks:
131-
- api-integration-test-network
132119

133120
connected-server:
134121
image: c42/mock-microservice-endpoints:1.0
@@ -143,8 +130,6 @@ services:
143130
interval: 30s
144131
timeout: 15s
145132
retries: 3
146-
networks:
147-
- api-integration-test-network
148133

149134
audit-log:
150135
image: c42/mock-microservice-endpoints:1.0
@@ -159,8 +144,6 @@ services:
159144
interval: 30s
160145
timeout: 15s
161146
retries: 3
162-
networks:
163-
- api-integration-test-network
164147

165148
file-events:
166149
image: c42/mock-microservice-endpoints:1.0
@@ -175,8 +158,6 @@ services:
175158
interval: 30s
176159
timeout: 15s
177160
retries: 3
178-
networks:
179-
- api-integration-test-network
180161

181162
preservation-data-service:
182163
image: c42/mock-microservice-endpoints:1.0
@@ -191,8 +172,6 @@ services:
191172
interval: 30s
192173
timeout: 15s
193174
retries: 3
194-
networks:
195-
- api-integration-test-network
196175

197176
exfiltration-data-service:
198177
image: c42/mock-microservice-endpoints:1.0
@@ -207,8 +186,6 @@ services:
207186
interval: 30s
208187
timeout: 15s
209188
retries: 3
210-
networks:
211-
- api-integration-test-network
212189

213190
trusted-activities:
214191
image: c42/mock-microservice-endpoints:1.0
@@ -223,39 +200,3 @@ services:
223200
interval: 30s
224201
timeout: 15s
225202
retries: 3
226-
networks:
227-
- api-integration-test-network
228-
229-
230-
# health_checker:
231-
# image: c42/mock-microservice-endpoints:1.0
232-
# entrypoint: ["echo", "All mock server containers are responding to requests!"]
233-
# container_name: "health_checker"
234-
# depends_on:
235-
# core:
236-
# condition: service_healthy
237-
# alerts:
238-
# condition: service_healthy
239-
# alert-rules:
240-
# condition: service_healthy
241-
# detection-lists:
242-
# condition: service_healthy
243-
# cases:
244-
# condition: service_healthy
245-
# storage:
246-
# condition: service_healthy
247-
# connected-server:
248-
# condition: service_healthy
249-
# audit-log:
250-
# condition: service_healthy
251-
# file-events:
252-
# condition: service_healthy
253-
# preservation-data-service:
254-
# condition: service_healthy
255-
# exfiltration-data-service:
256-
# condition: service_healthy
257-
# trusted-activities:
258-
# condition: service_healthy
259-
260-
networks:
261-
api-integration-test-network:

docs/core.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ paths:
437437
'*/*':
438438
schema:
439439
type: string
440-
example: http://alerts:4201
440+
example: http://alerts:4200
441441
/v1/FedObserver-API_URL:
442442
get:
443443
tags:
@@ -451,7 +451,7 @@ paths:
451451
'*/*':
452452
schema:
453453
type: string
454-
example: http://alert-rules:4202
454+
example: http://alert-rules:4200
455455
/v1/employeecasemanagementV2-API_URL:
456456
get:
457457
tags:
@@ -465,7 +465,7 @@ paths:
465465
'*/*':
466466
schema:
467467
type: string
468-
example: http://detection-lists:4203/svc/api/
468+
example: http://detection-lists:4200/svc/api/
469469
/v1/CASES_API-URL:
470470
get:
471471
tags:
@@ -479,7 +479,7 @@ paths:
479479
'*/*':
480480
schema:
481481
type: string
482-
example: http://cases:4204
482+
example: http://cases:4200
483483
/api/v1/connectedServerUrl:
484484
get:
485485
tags:
@@ -496,7 +496,7 @@ paths:
496496
properties:
497497
serverUrl:
498498
type: string
499-
example: http://connected-server:4206
499+
example: http://connected-server:4200
500500
/v1/AUDIT-LOG_API-URL:
501501
get:
502502
tags:
@@ -510,7 +510,7 @@ paths:
510510
'*/*':
511511
schema:
512512
type: string
513-
example: http://audit-log:4207
513+
example: http://audit-log:4200
514514
/v1/FORENSIC_SEARCH-API_URL:
515515
get:
516516
tags:
@@ -524,7 +524,7 @@ paths:
524524
'*/*':
525525
schema:
526526
type: string
527-
example: http://file-events:4208
527+
example: http://file-events:4200
528528
/v1/PRESERVATION-DATA-SERVICE_API-URL:
529529
get:
530530
tags:
@@ -538,7 +538,7 @@ paths:
538538
'*/*':
539539
schema:
540540
type: string
541-
example: http://preservation-data-service:4209
541+
example: http://preservation-data-service:4200
542542
/v1/TRUSTED-DOMAINS_API-URL:
543543
get:
544544
tags:
@@ -552,7 +552,7 @@ paths:
552552
'*/*':
553553
schema:
554554
type: string
555-
example: http://trusted-activities-service:4211
555+
example: http://trusted-activities-service:4200
556556

557557
# DEVICES
558558

@@ -1729,7 +1729,7 @@ components:
17291729
type: string
17301730
serverUrl:
17311731
type: string
1732-
example: http://storage:4205
1732+
example: http://storage:4200
17331733
FileDownloadTokenResponse_core:
17341734
type: object
17351735
properties:

0 commit comments

Comments
 (0)