nginx csrf error on login

Hi,

does someone have a working nginx reverse config for 17.1.0 where the login works?

our setup would be nginx:8052 ssl → awx:nginx:8052 nossl

currently i tried this but i get the csrf token error 403 when i try to login:
nginx:

location / {
proxy_pass http://awxweb:8052/;
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 8052;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection “upgrade”;
proxy_cache_bypass $http_upgrade;
proxy_set_header Accept-Encoding “”;
proxy_redirect off;
}

awx:nginx:

location / {

Add trailing / if missing

rewrite ^(.)$http_host(.[^/])$ $1$http_host$2/ permanent;
uwsgi_read_timeout 120s;
uwsgi_pass uwsgi;
include /etc/nginx/uwsgi_params;
proxy_set_header X-Forwarded-Port 8052;
uwsgi_param HTTP_X_FORWARDED_PORT 8052;
}

Thanks