You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Good afternoon. Help me solve the problem. Our NextJS project uses AuthJS for Keycloak authorization. We are still in the development stage, so there are no TLS certificates for Keycloak yet. When we deploy the project in a test environment in prod mode, the lack of certificates means that we cannot send an authorization request, we are redirected to the api error page/auth/error?error=Configuration. Therefore, in order for requests not to expect TLS certificates, we are trying to disable the NODE_TLS_REJECT_UNAUTHORIZED environment variable. But our project also uses Nginx, which conflicts with the disabled NODE_TLS_REJECT_UNAUTHORIZED parameter, and returns the error 502 Bad Gateway instead of the project. Can you tell me who solved a similar problem, how can I disable NODE_TLS_REJECT_UNAUTHORIZED, but only for AuthJS requests?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Good afternoon. Help me solve the problem. Our NextJS project uses AuthJS for Keycloak authorization. We are still in the development stage, so there are no TLS certificates for Keycloak yet. When we deploy the project in a test environment in prod mode, the lack of certificates means that we cannot send an authorization request, we are redirected to the api error page/auth/error?error=Configuration. Therefore, in order for requests not to expect TLS certificates, we are trying to disable the NODE_TLS_REJECT_UNAUTHORIZED environment variable. But our project also uses Nginx, which conflicts with the disabled NODE_TLS_REJECT_UNAUTHORIZED parameter, and returns the error 502 Bad Gateway instead of the project. Can you tell me who solved a similar problem, how can I disable NODE_TLS_REJECT_UNAUTHORIZED, but only for AuthJS requests?
PS Sorry, English is not my native language.
Beta Was this translation helpful? Give feedback.
All reactions