Skip to content

Commit f0fbed6

Browse files
committed
Update NGINX confs to refer local upstream
We don't have the test infrastructure fully set up to handle some of this yet. For now, we can just proxy pass to an upstream on localhost and update it down the road.
1 parent cbf8264 commit f0fbed6

File tree

2 files changed

+21
-6
lines changed

2 files changed

+21
-6
lines changed

github-action/test/configs/multi/nginx.conf

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ http {
22
upstream app {
33
zone app 64k;
44
least_conn;
5-
server 10.0.1.4:8000;
5+
server 127.0.0.1:8000;
66
}
77

88
server {
@@ -19,7 +19,7 @@ http {
1919
server {
2020
listen 443 ssl default_server;
2121
server_name example.com;
22-
22+
2323
ssl_certificate /etc/nginx/ssl/000000/my-cert.crt;
2424
ssl_certificate_key /etc/nginx/ssl/000000/my-cert.key;
2525

@@ -29,4 +29,12 @@ http {
2929
health_check;
3030
}
3131
}
32-
}
32+
33+
server {
34+
listen 8000;
35+
36+
location / {
37+
return 200 "Hello World";
38+
}
39+
}
40+
}

github-action/test/configs/single/nginx.conf

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ http {
22
upstream app {
33
zone app 64k;
44
least_conn;
5-
server 10.0.1.4:8000;
5+
server 127.0.0.1:8000;
66
}
77

88
server {
@@ -21,6 +21,13 @@ http {
2121
proxy_pass http://app;
2222
health_check;
2323
}
24-
2524
}
26-
}
25+
26+
server {
27+
listen 8000;
28+
29+
location / {
30+
return 200 "Hello World";
31+
}
32+
}
33+
}

0 commit comments

Comments
 (0)