FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    Base endpoint for the FusionAuth application.

    Scheduled Pinned Locked Moved
    General Discussion
    2
    3
    316
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dmitry.karpik
      last edited by

      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;
      }
      }

      danD 1 Reply Last reply Reply Quote 0
      • danD
        dan @dmitry.karpik
        last edited by

        @dmitry-karpik I don't understand what you are trying to achieve. Can you explain it in more detail?

        --
        FusionAuth - Auth for devs, built by devs.
        https://fusionauth.io

        1 Reply Last reply Reply Quote 0
        • D
          dmitry.karpik
          last edited by

          @dan

          We have two OurApp and FusionAuth applications installed on our server. We are currently using two subdomains.

          1. For example https://auth.service.com . All requests that come from this subdomain nginx proxies to FusionAuth (on our server).

          2. 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.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post