Skip to content

Commit 5347b47

Browse files
committed
healthchecks
1 parent a3af4c1 commit 5347b47

File tree

10 files changed

+52
-78
lines changed

10 files changed

+52
-78
lines changed

tools/reverse-proxy/default.conf.template

Lines changed: 0 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,6 @@ server {
4242
server_name js-client-side.${DOMAIN} *.js-client-side.${DOMAIN};
4343
resolver 127.0.0.11 valid=10s;
4444

45-
# Exact match for /ops/healthcheck (highest priority)
46-
location = /ops/healthcheck {
47-
access_log off;
48-
return 200 "healthy\n";
49-
add_header Content-Type text/plain;
50-
}
51-
5245
location / {
5346
set $backend "javascript-sdk-client-side";
5447
proxy_pass http://$backend:3031;
@@ -69,13 +62,6 @@ server {
6962
server_name js-client-server.${DOMAIN} *.js-client-server.${DOMAIN};
7063
resolver 127.0.0.11 valid=10s;
7164

72-
# Exact match for /ops/healthcheck (highest priority)
73-
location = /ops/healthcheck {
74-
access_log off;
75-
return 200 "healthy\n";
76-
add_header Content-Type text/plain;
77-
}
78-
7965
location / {
8066
set $backend "javascript-sdk-client-server";
8167
proxy_pass http://$backend:3032;
@@ -96,13 +82,6 @@ server {
9682
server_name js-react.${DOMAIN} *.js-react.${DOMAIN};
9783
resolver 127.0.0.11 valid=10s;
9884

99-
# Exact match for /ops/healthcheck (highest priority)
100-
location = /ops/healthcheck {
101-
access_log off;
102-
return 200 "healthy\n";
103-
add_header Content-Type text/plain;
104-
}
105-
10685
location / {
10786
set $backend "javascript-sdk-react-client-side";
10887
proxy_pass http://$backend:3034;
@@ -123,13 +102,6 @@ server {
123102
server_name server-side.${DOMAIN} *.server-side.${DOMAIN};
124103
resolver 127.0.0.11 valid=10s;
125104

126-
# Exact match for /ops/healthcheck (highest priority)
127-
location = /ops/healthcheck {
128-
access_log off;
129-
return 200 "healthy\n";
130-
add_header Content-Type text/plain;
131-
}
132-
133105
location / {
134106
set $backend "server-side";
135107
proxy_pass http://$backend:3033;
@@ -150,13 +122,6 @@ server {
150122
server_name secure-signals-client-server.${DOMAIN} *.secure-signals-client-server.${DOMAIN};
151123
resolver 127.0.0.11 valid=10s;
152124

153-
# Exact match for /ops/healthcheck (highest priority)
154-
location = /ops/healthcheck {
155-
access_log off;
156-
return 200 "healthy\n";
157-
add_header Content-Type text/plain;
158-
}
159-
160125
location / {
161126
set $backend "google-secure-signals-client-server";
162127
proxy_pass http://$backend:3041;
@@ -177,13 +142,6 @@ server {
177142
server_name secure-signals-client-side.${DOMAIN} *.secure-signals-client-side.${DOMAIN};
178143
resolver 127.0.0.11 valid=10s;
179144

180-
# Exact match for /ops/healthcheck (highest priority)
181-
location = /ops/healthcheck {
182-
access_log off;
183-
return 200 "healthy\n";
184-
add_header Content-Type text/plain;
185-
}
186-
187145
location / {
188146
set $backend "google-secure-signals-client-side";
189147
proxy_pass http://$backend:3042;
@@ -204,13 +162,6 @@ server {
204162
server_name secure-signals-server-side.${DOMAIN} *.secure-signals-server-side.${DOMAIN};
205163
resolver 127.0.0.11 valid=10s;
206164

207-
# Exact match for /ops/healthcheck (highest priority)
208-
location = /ops/healthcheck {
209-
access_log off;
210-
return 200 "healthy\n";
211-
add_header Content-Type text/plain;
212-
}
213-
214165
location / {
215166
set $backend "google-secure-signals-server-side";
216167
proxy_pass http://$backend:3043;
@@ -231,13 +182,6 @@ server {
231182
server_name secure-signals-react.${DOMAIN} *.secure-signals-react.${DOMAIN};
232183
resolver 127.0.0.11 valid=10s;
233184

234-
# Exact match for /ops/healthcheck (highest priority)
235-
location = /ops/healthcheck {
236-
access_log off;
237-
return 200 "healthy\n";
238-
add_header Content-Type text/plain;
239-
}
240-
241185
location / {
242186
set $backend "google-secure-signals-react-client-side";
243187
proxy_pass http://$backend:3044;
@@ -258,13 +202,6 @@ server {
258202
server_name prebid-client.${DOMAIN} *.prebid-client.${DOMAIN};
259203
resolver 127.0.0.11 valid=10s;
260204

261-
# Exact match for /ops/healthcheck (highest priority)
262-
location = /ops/healthcheck {
263-
access_log off;
264-
return 200 "healthy\n";
265-
add_header Content-Type text/plain;
266-
}
267-
268205
location / {
269206
set $backend "prebid-client";
270207
proxy_pass http://$backend:3051;
@@ -295,13 +232,6 @@ server {
295232
server_name prebid-client-server.${DOMAIN} *.prebid-client-server.${DOMAIN};
296233
resolver 127.0.0.11 valid=10s;
297234

298-
# Exact match for /ops/healthcheck (highest priority)
299-
location = /ops/healthcheck {
300-
access_log off;
301-
return 200 "healthy\n";
302-
add_header Content-Type text/plain;
303-
}
304-
305235
location / {
306236
set $backend "prebid-client-server";
307237
proxy_pass http://$backend:3052;
@@ -322,13 +252,6 @@ server {
322252
server_name prebid-secure-signals.${DOMAIN} *.prebid-secure-signals.${DOMAIN};
323253
resolver 127.0.0.11 valid=10s;
324254

325-
# Exact match for /ops/healthcheck (highest priority)
326-
location = /ops/healthcheck {
327-
access_log off;
328-
return 200 "healthy\n";
329-
add_header Content-Type text/plain;
330-
}
331-
332255
location / {
333256
set $backend "prebid-secure-signals-client-side";
334257
proxy_pass http://$backend:3061;

web-integrations/google-secure-signals/client-server/server.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ app.use(express.urlencoded({ extended: true }));
3535
app.engine('.html', ejs.__express);
3636
app.set('view engine', 'html');
3737

38+
// Healthcheck endpoint for Kubernetes probes
39+
app.get('/ops/healthcheck', (req, res) => {
40+
res.status(200).send('healthy\n');
41+
});
42+
3843
app.get('/', (req, res) => {
3944
res.render('index', {
4045
identity: undefined,

web-integrations/google-secure-signals/client-side/default.conf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
server {
22
listen 3042;
33

4+
# Healthcheck endpoint for Kubernetes probes
5+
location = /ops/healthcheck {
6+
access_log off;
7+
return 200 "healthy\n";
8+
add_header Content-Type text/plain;
9+
}
10+
411
location / {
512
root /usr/share/nginx/html;
613
index index.html;

web-integrations/google-secure-signals/server-side/server.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@ app.use(express.urlencoded({ extended: true }));
113113
app.engine('.html', ejs.__express);
114114
app.set('view engine', 'html');
115115

116+
// Healthcheck endpoint for Kubernetes probes
117+
app.get('/ops/healthcheck', (req, res) => {
118+
res.status(200).send('healthy\n');
119+
});
120+
116121
app.use(nocache());
117122

118123
function isRefreshableIdentity(identity) {

web-integrations/javascript-sdk/client-server/server.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ app.use(express.urlencoded({ extended: true }));
3030
app.engine('.html', ejs.__express);
3131
app.set('view engine', 'html');
3232

33+
// Healthcheck endpoint for Kubernetes probes
34+
app.get('/ops/healthcheck', (req, res) => {
35+
res.status(200).send('healthy\n');
36+
});
37+
3338
app.get('/', (req, res) => {
3439
res.render('index', {
3540
uidBaseUrl,

web-integrations/javascript-sdk/client-side/default.conf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
server {
22
listen 3031;
33

4+
# Healthcheck endpoint for Kubernetes probes
5+
location = /ops/healthcheck {
6+
access_log off;
7+
return 200 "healthy\n";
8+
add_header Content-Type text/plain;
9+
}
10+
411
location / {
512
root /usr/share/nginx/html;
613
index index.html;

web-integrations/prebid-integrations/client-server/server.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ app.engine('.html', ejs.__express);
3535
app.set('views', './public');
3636
app.set('view engine', 'html');
3737

38-
38+
// Healthcheck endpoint for Kubernetes probes
39+
app.get('/ops/healthcheck', (req, res) => {
40+
res.status(200).send('healthy\n');
41+
});
3942

4043
// ============================================================================
4144
// Encryption/Decryption Helpers

web-integrations/prebid-integrations/client-side/default.conf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
server {
22
listen 3051;
33

4+
# Healthcheck endpoint for Kubernetes probes
5+
location = /ops/healthcheck {
6+
access_log off;
7+
return 200 "healthy\n";
8+
add_header Content-Type text/plain;
9+
}
10+
411
location / {
512
root /usr/share/nginx/html;
613
index index.html;

web-integrations/prebid-secure-signals/client-side/default.conf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
server {
22
listen 3061;
33

4+
# Healthcheck endpoint for Kubernetes probes
5+
location = /ops/healthcheck {
6+
access_log off;
7+
return 200 "healthy\n";
8+
add_header Content-Type text/plain;
9+
}
10+
411
location / {
512
root /usr/share/nginx/html;
613
index index.html;

web-integrations/server-side/server.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ app.use(session({
103103
app.use(express.static('public'));
104104
app.use(express.urlencoded({ extended: true }));
105105

106+
// Healthcheck endpoint for Kubernetes probes
107+
app.get('/ops/healthcheck', (req, res) => {
108+
res.status(200).send('healthy\n');
109+
});
110+
106111
app.engine('.html', ejs.__express);
107112
app.set('view engine', 'html');
108113

0 commit comments

Comments
 (0)