Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/main/java/org/hl7/davinci/ehrserver/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ public abstract class Config {

static {
try {
if (System.getenv("DOCKER_PROFILE") != null && System.getenv("DOCKER_PROFILE").equals("true")) {
if (System.getenv("DOCKER_PROFILE") != null && System.getenv("DOCKER_PROFILE").equals("docker-windows")) {
load(Config.class.getResourceAsStream("/fhirServer.docker-windows.properties"));
} else if (System.getenv("DOCKER_PROFILE") != null && System.getenv("DOCKER_PROFILE").equals("docker-linux")) {
load(Config.class.getResourceAsStream("/fhirServer.docker.properties"));
} else {
}else {
load(Config.class.getResourceAsStream("/fhirServer.properties"));
}
} catch (IOException e) {
Expand Down
11 changes: 11 additions & 0 deletions src/main/resources/fhirServer.docker-windows.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
client_id = app-token
client_secret= #replaceMe#
realm=ClientFhirServer
use_oauth = false
oauth_token = http://docker.for.win.localhost:8180/auth/realms/ClientFhirServer/protocol/openid-connect/token
oauth_authorize = http://localhost:8180/auth/realms/ClientFhirServer/protocol/openid-connect/auth
proxy_authorize = http://localhost:8080/test-ehr/auth
proxy_token = http://localhost:8080/test-ehr/token
redirect_post_launch = http://localhost:8080/test-ehr/_services/smart/Launch
redirect_post_token = http://localhost:8080/test-ehr/token
auth_redirect_host = localhost