Newer
Older
# Configuration template for the portal running inside a Docker container
Mirco Nasuti
committed
# See http://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html
Mirco Nasuti
committed
spring:
datasource:
url: {{ default .Env.DB_URL "jdbc:postgresql://172.22.0.1:5432/postgres" }}
username: {{ default .Env.DB_USER "postgres" }}
password: {{ .Env.DB_PASSWORD }}
Mirco Nasuti
committed
driver-class-name: org.postgresql.Driver
jpa:
hibernate:
dialect: org.hibernate.dialect.PostgreSQL9Dialect
# SPRING RESOURCES HANDLING
Mirco Nasuti
committed
resources:
chain:
enabled: true # TODO: why is that enabled? Do we serve any resources from the backend?
Mirco Nasuti
committed
Mirco Nasuti
committed
security:
enabled: false # TODO: why Spring security is disabled? It supports OAuth2 out of the box...
authentication:
enabled: {{ default .Env.AUTHENTICATION "1" }}
Mirco Nasuti
committed
hbp:
client:
clientId: {{ default .Env.CLIENT_ID "996f97c5-a3ca-460e-b18b-00df3e2be89a" }}
Mirco Nasuti
committed
clientSecret: {{ .Env.CLIENT_SECRET }}
accessTokenUri: {{ default .Env.TOKEN_URI "https://services.humanbrainproject.eu/oidc/token" }}
userAuthorizationUri: {{ default .Env.AUTH_URI "https://services.humanbrainproject.eu/oidc/authorize" }}
Mirco Nasuti
committed
tokenName: oauth_token
authenticationScheme: query
clientAuthenticationScheme: form
resource:
userInfoUri: {{ default .Env.USER_INFO_URI "https://services.humanbrainproject.eu/oidc/userinfo" }}
Mirco Nasuti
committed
# WEB FRONTEND
frontend:
loginUrl: {{ default .Env.LOGIN_URL "http://frontend/services/login/hbp" }}
redirectAfterLogoutUrl: {{ default .Env.AFTER_LOGOUT_URL (default .Env.LOGIN_URI "http://frontend/services/login/hbp") }}
redirectAfterLoginUrl: {{ default .Env.AFTER_LOGIN_URL "http://frontend/home" }}
Mirco Nasuti
committed
logging:
level:
logging.level.org.springframework.web = {{ default .Env.LOGGING_LEVEL_WEB "WARN" }}
logging.level.org.hibernate = {{ default .Env.LOGGING_LEVEL_HIBERNATE "WARN" }}
Mirco Nasuti
committed
# EMBEDDED SERVER CONFIGURATION
Mirco Nasuti
committed
server:
contextPath: {{ default .Env.CONTEXT_PATH "/services" }}
port: 8080
Mirco Nasuti
committed
use-forward-headers: true
session:
timeout: {{ default .Env.SESSION_TIMEOUT "2592000" }}
Mirco Nasuti
committed
# ENDPOINTS
endpoints
enabled: true
health:
enabled: true
endoint: /health
sentitive: false
Mirco Nasuti
committed
workflow:
experimentUrl: {{ default .Env.WOKEN_URL "http://172.22.0.1:8087" }}/experiment
listMethodsUrl: {{ default .Env.WOKEN_URL "http://172.22.0.1:8087" }}/list-methods
miningMipUrl: {{ default .Env.WOKEN_URL "http://172.22.0.1:8087" }}/mining"
miningExaremeUrl: {{ default .Env.EXAREME_URL "http://hbps2.chuv.ch:9090" }}/mining/query