Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-27737

Make the Management API exposed on another port than the default one

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: ADDONS_10.10
    • Component/s: Rest API

      Description

      By default, Nuxeo is accessible through the port 8080, the Management API should be exposed through another port such as 9090.

      From Antoine Taillefer in NXP-27370:

      About the port, after discussing with Damien and Thomas:

      • The reason why we suggested to use an Nginx configuration is that we thought that it would not be possible to simply isolate the Management API by only configuring Tomcat. Yet, Damien suggested to work on a POC to have a separate webapp for the Management API in the same Tomcat - so on another port than 8080 -, hoping that it will have access to the Nuxeo Framework through the JVM, thus reach the underlying services.
      • If this doesn't work, because the Management API needs the same runtime/classloader/whatever than the nuxeo webapp, then another solution can be implemented: use a Tomcat valve to set a flag (request attribute, ThreadLocal?) if the request port is the one dedicated for the Management API, then only allow access if this flag is set, otherwise return 404.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours
                  4h