Skip to content

Commit 63d4c09

Browse files
committed
refactor: shorten names
1 parent 9aa187d commit 63d4c09

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

.github/workflows/docker-build-and-push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Push Docker image
1+
name: Publish
22

33
on:
44
push:

.github/workflows/docker-k8s.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test Docker, Compose and k8s
1+
name: Container
22

33
on:
44
pull_request:

Resources/nginx/nginx.conf

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ http {
4343

4444
resolver 127.0.0.11 valid=30s;
4545

46-
upstream graphql_upstream {
47-
server graphql-engine:8080 fail_timeout=0;
48-
}
49-
5046
geo $limit {
5147
default 1;
5248
10.0.0.0/8 0;
@@ -95,7 +91,8 @@ http {
9591
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
9692
proxy_set_header Host $http_host;
9793
proxy_redirect off;
98-
proxy_pass http://graphql_upstream/;
94+
set $upstream_graphql graphql;
95+
proxy_pass http://$upstream_graphql:8080/;
9996
}
10097

10198
location /graphql/console {
@@ -105,7 +102,7 @@ http {
105102
proxy_set_header X-Real-IP $remote_addr;
106103
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
107104
proxy_set_header Host $http_host;
108-
set $upstream_graphiql graphiql;
105+
set $upstream_graphiql graphql-engine;
109106
proxy_pass http://$upstream_graphiql:80/;
110107
}
111108

@@ -126,7 +123,8 @@ http {
126123
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
127124
proxy_set_header Host $http_host;
128125
proxy_redirect off;
129-
proxy_pass http://graphql_upstream/v1/graphql;
126+
set $upstream_graphql graphql;
127+
proxy_pass http://$upstream_graphql:8080/v1/graphql;
130128
}
131129

132130
location /api/ {

0 commit comments

Comments
 (0)