Code Monkey home page Code Monkey logo

Comments (3)

kylelaker avatar kylelaker commented on July 29, 2024

Thanks for this report! I think this stems from the way the Viewer application is built. We specify the URL of the REST service as an environment variable during the build process; because the environment state is converted to a static JavaScript object during the build, we can't (currently) modify that value during runtime.

As a first step to fix this (within this bundled container image), we can set the configuration value to use a relative URL /oscal/v1 rather than including the host. This should work fine for the all-in-one container image.

In the longer term, we'll want to look into a means to actually configure the viewer application at runtime to support various backends (so that it doesn't have to be rebuilt for every backend). Then we'll want to find a way to make it easier to set that value when running the container.

from oscal-editor-deployment.

kylelaker avatar kylelaker commented on July 29, 2024

With #49 having been merged, the latest image should now work in an environment where the container is running on one machine and being accessed from another. @kkretsch before we close this, does the change that we've made properly support your use case?

from oscal-editor-deployment.

kkretsch avatar kkretsch commented on July 29, 2024

Yes, I just updated the image and can now access the oscal files of the installation. Great idea to just use a relative path.

from oscal-editor-deployment.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.