Skip to content

Commit a40f34c

Browse files
johnbe11John Bell
andauthored
ISV-3470: use proxy_pass variable to force regular address resolution… (#441)
* ISV-3470: use proxy_pass variable to force regular address resolution (to prevent mismatched upstream address) * ISV-3470: use nameserver qualified name instead of ip address --------- Co-authored-by: John Bell <[email protected]>
1 parent c70cfd3 commit a40f34c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

ansible/inventory/group_vars/operator-pipeline.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,6 @@ community_signing_pipeline_url: "{{ community_signing_pipeline_name }}-tekton-{{
5858
nginx_basic_user_file_local_path: ../../vaults/common/htpasswd-nonprod
5959
nginx_proxy_service_url: "https://{{ community_signing_pipeline_url }}"
6060
nginx_proxy_url: "{{ community_signing_pipeline_name }}-{{ env }}.apps.pipelines-stage.0ce8.p1.openshiftapps.com"
61+
nginx_nameserver_ip: "dns-default.openshift-dns.svc.cluster.local"
6162

6263
signing_pub_key_local_path: ../../vaults/{{ env }}/sig-key.pub

ansible/roles/nginx-proxy/templates/openshift/nginx-configuration.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ data:
4040
location / {
4141
auth_basic "Community signing pipeline";
4242
auth_basic_user_file {{ nginx_basic_user_file_path }};
43-
proxy_pass {{ nginx_proxy_service_url }};
43+
resolver {{ nginx_nameserver_ip }};
44+
set $backend {{ nginx_proxy_service_url }};
45+
proxy_pass $backend;
4446
}
4547
}
4648
}

0 commit comments

Comments
 (0)