Base endpoint for the FusionAuth application.
-
Hello.
We are currently using two subdomains (1 auth, 2 app). Below are the nginx settings.Question:
Can we somehow pass base endpoint for FusionAuth app (eg /auth)? In order for us to be able to proxy requests in nginx using location and we did not have to create two sub domains.Thank you.
server {
listen 443 ssl;
server_name app.service.com;proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Forwarded-Port "443";
proxy_set_header X-Forwarded-Proto "https";location / {
proxy_pass http://app:5000;
}
}server {
listen 443 ssl;
server_name auth.service.com;proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Forwarded-Port "443";
proxy_set_header X-Forwarded-Proto "https";location / {
proxy_pass http://auth:9011;
}
} -
@dmitry-karpik I don't understand what you are trying to achieve. Can you explain it in more detail?
-
We have two OurApp and FusionAuth applications installed on our server. We are currently using two subdomains.
-
For example https://auth.service.com . All requests that come from this subdomain nginx proxies to FusionAuth (on our server).
-
https://app.service.com. All requests that come from this subdomain nginx proxies to OurApp.
But we wouldn't want to have two subdomains. We would like to have one domain for example https://service.com . We would like setup that all requests from https://service.com/auth nginx proxies to the FusionAuth app, and all the others (ex https://service.com/home) to requests to the OurApp.
The question is, is it possible to specify FusionApp so that all endpoits start with /auth? This way we would be able to use one subdomain and configure nginx to proxy all requests that start with /auth to FusionAuth and the rest to OurApp.
We use docker of FusionAuth.
Or maybe there is some other solution?
Thanks.
-