awx sso times out when used behind nginx reverse proxy

Hello All,

We are using nginx as reverse proxy for aws, currently we see issue when I configure SSO with Azure SAML. It just timeout when I hit sso button. below is the nginx conf I am using please help.

metadata:
name: nginx-conf
namespace: awx
apiVersion: v1
data:
nginx.conf:
user nginx;
worker_processes 4;
pid /var/run/nginx.pid;
worker_rlimit_nofile 10240;
events {
worker_connections 10240;
accept_mutex off;
multi_accept off;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
log_format timed_combined '$remote_addr - $remote_user [$time_local] ’ '“$request” $status $body_bytes_sent ’ '“$http_referer” “$http_user_agent” ’ ‘$request_time $upstream_response_time’;
keepalive_timeout 0;
keepalive_disable none;
keepalive_requests 1;
server {
listen 80;
server_name awx.xxxxx.com;
rewrite ^ https://$host$request_uri? permanent;
}
server {
listen 443;
server_name awx.xxxxx.com;
ssl on;
ssl_certificate /nginx/ssl/tls.crt;
ssl_certificate_key /nginx/ssl/tls.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
location / {
proxy_pass http://awx.prod.svc.cluster.local/;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Port 443;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection “upgrade”;
proxy_read_timeout 300;
}
}
}

### AWX Operator version

1.0.0

### AWX version

21.8.0

### Kubernetes platform

kubernetes

### Kubernetes/Platform version

1.19.15

Thanks
Vamshi