Skip to content

Commit

Permalink
use new validator
Browse files Browse the repository at this point in the history
  • Loading branch information
Jammjammjamm committed Mar 26, 2024
1 parent 704d86f commit b98252b
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 31 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ G10_VALIDATOR_URL=http://validator_service:4567
G10_FHIR_RESOURCE_VALIDATOR_URL=http://hl7_validator_service:3500
REDIS_URL=redis://redis:6379/0

USE_HL7_RESOURCE_VALIDATOR=false
USE_HL7_RESOURCE_VALIDATOR=true
# To use the HL7 validator wrapper instead of the inferno validator wrapper, set the above to true,
# and uncomment the relevant settings in the following files:
# - docker-compose.yml -- "hl7_validator_service" section at the bottom
Expand Down
30 changes: 15 additions & 15 deletions config/nginx.background.conf
Original file line number Diff line number Diff line change
Expand Up @@ -86,20 +86,20 @@ http {

# To enable the HL7 Validator Wrapper, both the section below and
# the section in docker-compose.background.yml need to be uncommented
# location /hl7validatorapi/ {
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_set_header Host $http_host;
# proxy_set_header X-Forwarded-Proto $scheme;
# proxy_set_header X-Forwarded-Port $server_port;
# proxy_redirect off;
# proxy_set_header Connection '';
# proxy_http_version 1.1;
# chunked_transfer_encoding off;
# proxy_buffering off;
# proxy_cache off;
# proxy_read_timeout 600s;
#
# proxy_pass http://hl7_validator_service:3500/;
# }
location /hl7validatorapi/ {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Port $server_port;
proxy_redirect off;
proxy_set_header Connection '';
proxy_http_version 1.1;
chunked_transfer_encoding off;
proxy_buffering off;
proxy_cache off;
proxy_read_timeout 600s;

proxy_pass http://hl7_validator_service:3500/;
}
}
}
22 changes: 11 additions & 11 deletions docker-compose.background.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ services:
volumes:
- ./data/redis:/data
command: redis-server --appendonly yes
# hl7_validator_service:
# image: infernocommunity/inferno-resource-validator:1.0.51
# environment:
# # Defines how long validator sessions last if unused, in minutes:
# # Negative values mean sessions never expire, 0 means sessions immediately expire
# SESSION_CACHE_DURATION: -1
# volumes:
# - ./lib/onc_certification_g10_test_kit/igs:/home/igs
# # To let the service share your local FHIR package cache,
# # uncomment the below line
# # - ~/.fhir:/home/ktor/.fhir
hl7_validator_service:
image: infernocommunity/inferno-resource-validator:1.0.51
environment:
# Defines how long validator sessions last if unused, in minutes:
# Negative values mean sessions never expire, 0 means sessions immediately expire
SESSION_CACHE_DURATION: -1
volumes:
- ./lib/onc_certification_g10_test_kit/igs:/home/igs
# To let the service share your local FHIR package cache,
# uncomment the below line
# - ~/.fhir:/home/ktor/.fhir
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ services:
extends:
file: docker-compose.background.yml
service: redis
# hl7_validator_service:
# extends:
# file: docker-compose.background.yml
# service: hl7_validator_service
hl7_validator_service:
extends:
file: docker-compose.background.yml
service: hl7_validator_service

0 comments on commit b98252b

Please # to comment.