Skip to content

How can you run this server with more than one schema version? #131

Discussion options

You must be logged in to vote

The public server supports multiple version by fronting all traffic through Nginx. Requests are proxied to Docker images based on the request URL, with each Docker image configured to use a specific schema, as well as a base directory containing all of the schemas, where each schema is a git clone of different branches of the ocsf/ocsf-schema repo.

Here is a snippet of the Nginx configuration showing how the redirection is working, with 1.4.0 and 1.5.0-dev mapped:

server {
  .
  .
  .

   # The root path redirects to the latest released schema version, currently 1.4.0
  location / {
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_fo…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@rmouritzen-splunk
Comment options

@rmouritzen-splunk
Comment options

@tom-leahy
Comment options

@rmouritzen-splunk
Comment options

Comment options

You must be logged in to vote
1 reply
@tom-leahy
Comment options

Answer selected by rmouritzen-splunk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants