Skip to content

Commit

Permalink
Fix #212: make jaxrs server address configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
Edvard Fonsell committed Apr 19, 2017
1 parent c4e1b28 commit 823208c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
public class NflowJettyConfiguration {

@Inject
Environment env;
private Environment env;

@Bean
public Server jaxRsServer(WorkflowInstanceResource workflowInstanceResource,
Expand All @@ -69,7 +69,7 @@ public Server jaxRsServer(WorkflowInstanceResource workflowInstanceResource,
statisticsResource,
archiveResource
));
factory.setAddress('/' + factory.getAddress());
factory.setAddress(env.getProperty("nflow.api.basepath", '/' + factory.getAddress()));
factory.setProviders(asList(
jsonProvider(nflowRestObjectMapper),
validationExceptionMapper(),
Expand Down

0 comments on commit 823208c

Please sign in to comment.