FusionAuth/fusionauth-contrib

nginx nonrootpath excerpt

Opened this issue · 2 comments

The following didn't work for me from this config

        location ~^/(?<fusionPath>(oauth2|admin|ajax|login|password|js/identityProvider))/ {
            proxy_pass       http://fusionauth/$fusionPath/;
            ...rest of settings
        }

Although it successfully proxies to FusionAuth it kept resulting in a 404.

This is working if you would like to test:

          location ~^/(oauth2|admin|ajax|login|password|js/identityProvider) {
            proxy_pass       http://fusionauth;
            ...rest of settings
        }

not sure why, if NGINX version/or the project setup is just different.

Thanks @ahmkindi . What version of nginx were you running?

nginx version 1.21

This is my current config, its still a work in progress but its getting the job done.

first time using FusionAuth, great product, thank you.