NGINX - Not Calling Java Based Auth Applicaiton running in Spring Boot
I am implementing nginx as API gateway. I have two applications written in
spring-boot-web with angularjs. One application is which is auth application
and has login.html page inside it. The othe is my upstream applicaiton.
My issue is when I comment/disable the /auth part of the below config, my
applicaiton becomes accessible via nginx. But, when I enable the auth config
in nginx, i start getting http 500 error. I am not getting detailed logs in
NGINX so don't know how to send more details in the forum.
Following is my nginx.conf.
# web user traffic service
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header Host $http_host;