Skip to content
Snippets Groups Projects
Commit 345b27bd authored by Ludovic Claude's avatar Ludovic Claude
Browse files

Reorganise configuration

parent 6b1251a1
No related branches found
No related tags found
No related merge requests found
...@@ -15,15 +15,10 @@ spring: ...@@ -15,15 +15,10 @@ spring:
chain: chain:
enabled: true # TODO: why is that enabled? Do we serve any resources from the backend? enabled: true # TODO: why is that enabled? Do we serve any resources from the backend?
# SECURITY
security:
enabled: false # TODO: why Spring security is disabled? It supports OAuth2 out of the box...
authentication:
enabled: {{ default .Env.AUTHENTICATION "1" }}
# HBP OAUTH2 LOGIN # HBP OAUTH2 LOGIN
hbp: hbp:
authentication:
enabled: {{ default .Env.AUTHENTICATION "1" }}
client: client:
clientId: {{ default .Env.CLIENT_ID "996f97c5-a3ca-460e-b18b-00df3e2be89a" }} clientId: {{ default .Env.CLIENT_ID "996f97c5-a3ca-460e-b18b-00df3e2be89a" }}
clientSecret: {{ .Env.CLIENT_SECRET }} clientSecret: {{ .Env.CLIENT_SECRET }}
...@@ -62,8 +57,9 @@ endpoints: ...@@ -62,8 +57,9 @@ endpoints:
endoint: /health endoint: /health
sentitive: false sentitive: false
workflow: services:
experimentUrl: {{ default .Env.WOKEN_URL "http://172.22.0.1:8087" }}/experiment woken:
listMethodsUrl: {{ default .Env.WOKEN_URL "http://172.22.0.1:8087" }}/list-methods experimentUrl: {{ default .Env.WOKEN_URL "http://172.22.0.1:8087" }}/experiment
miningMipUrl: {{ default .Env.WOKEN_URL "http://172.22.0.1:8087" }}/mining" listMethodsUrl: {{ default .Env.WOKEN_URL "http://172.22.0.1:8087" }}/list-methods
miningExaremeUrl: {{ default .Env.EXAREME_URL "http://hbps2.chuv.ch:9090" }}/mining/query exareme:
miningExaremeUrl: {{ default .Env.EXAREME_URL "http://hbps2.chuv.ch:9090" }}/mining/query
...@@ -75,9 +75,9 @@ public class SecurityConfiguration extends WebSecurityConfigurerAdapter { ...@@ -75,9 +75,9 @@ public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
private UserRepository userRepository; private UserRepository userRepository;
/** /**
* Enable authentication (1) or disable it (0). Default is 1 * Enable HBP collab authentication (1) or disable it (0). Default is 1
*/ */
@Value("#{'${authentication.enabled:1}'}") @Value("#{'${hbp.authentication.enabled:1}'}")
private boolean authentication; private boolean authentication;
/** /**
......
...@@ -49,13 +49,13 @@ public class ExperimentApi { ...@@ -49,13 +49,13 @@ public class ExperimentApi {
private static final String EXAREME_LR_ALGO = "WP_LINEAR_REGRESSION"; private static final String EXAREME_LR_ALGO = "WP_LINEAR_REGRESSION";
@Value("#{'${workflow.experimentUrl:http://dockerhost:8087/experiment}'}") @Value("#{'${services.woken.experimentUrl:http://dockerhost:8087/experiment}'}")
private String experimentUrl; private String experimentUrl;
@Value("#{'${workflow.listMethodsUrl:http://dockerhost:8087/list-methods}'}") @Value("#{'${services.woken.listMethodsUrl:http://dockerhost:8087/list-methods}'}")
private String listMethodsUrl; private String listMethodsUrl;
@Value("#{'${workflow.miningExaremeUrl:http://hbps2.chuv.ch:9090/mining/query}'}") @Value("#{'${services.exareme.miningExaremeUrl:http://hbps2.chuv.ch:9090/mining/query}'}")
private String miningExaremeQueryUrl; private String miningExaremeQueryUrl;
@Autowired @Autowired
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment