Add local_base_urls configuration to feed DaoConfig.setTreatBaseUrlsAsLocal()

This commit is contained in:
Michael Buckley
2021-10-07 15:14:06 -04:00
parent 3272b8c0d2
commit 097db1642f
3 changed files with 15 additions and 5 deletions

View File

@@ -26,6 +26,7 @@ import org.springframework.context.annotation.Primary;
import org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import java.util.HashSet;
import java.util.Optional;
/**
@@ -121,6 +122,7 @@ public class FhirServerConfigCommon {
retVal.setFilterParameterEnabled(appProperties.getFilter_search_enabled());
retVal.setAdvancedLuceneIndexing(appProperties.getAdvanced_lucene_indexing());
retVal.setTreatBaseUrlsAsLocal(new HashSet<>(appProperties.getLocal_base_urls()));
return retVal;
}