Skip to content

Commit 84b5297

Browse files
committed
Allow requests to /internal in dev container setup and forward metrics request to seperate webserver
1 parent 2511f59 commit 84b5297

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.devcontainer/images/nginx/conf/nginx.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ http {
4242
server host.docker.internal:3000;
4343
}
4444

45+
upstream cloud_controller_metrics {
46+
server host.docker.internal:9395;
47+
}
48+
4549
map $upload_tmp_path $upload_tmp_path_modified {
4650
default "n/a";
4751
"~^/tmp/(?<path>.*)$" $path;

.devcontainer/images/nginx/conf/nginx_external_endpoints.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ server {
22
listen 80;
33

44
# Forbid access to internal endpoints
5-
location /internal/v4/ {
6-
return 403 'Forbidden';
5+
location /internal/v4/metrics {
6+
proxy_pass http://cloud_controller_metrics;
77
}
88

99
# proxy and log all CC traffic

0 commit comments

Comments
 (0)