From deddc89c974900cce948f9c0242e491b70c2b0af Mon Sep 17 00:00:00 2001 From: Baptiste Toulemonde <toulemonde@cines.fr> Date: Mon, 31 Jan 2022 08:25:19 +0100 Subject: [PATCH] fix --- src/main/resources/application-dev.properties | 32 +++++++++++++++++ .../resources/application-prod.properties | 34 ++++++++++++++++-- .../resources/application-staging.properties | 36 +++++++++++++++++-- 3 files changed, 98 insertions(+), 4 deletions(-) diff --git a/src/main/resources/application-dev.properties b/src/main/resources/application-dev.properties index 31655b6..308cb54 100644 --- a/src/main/resources/application-dev.properties +++ b/src/main/resources/application-dev.properties @@ -19,3 +19,35 @@ spring.security.oauth2.client.registration.oidc.scope=address,phone,openid,email spring.security.oauth2.client.registration.oidc.redirect-uri=http://localhost:4200/callback +# SMART HARVESTER Application Properties +spring.profiles.active=@activatedProperties@ +# 1. For pretty print +spring.jackson.serialization.indent-output=true + +#2. Application configuration. +server.port=8080 + + +# 4. Logging configuration. +logging.level.com.assignment.springboot.mongo=DEBUG +logging.pattern.console= %d{yyyy-MM-dd HH:mm:ss} - %msg%n + +# 5. CORS +cors.allowed-origins = http://localhost:4200 + +# 6.JWT +smartharvester.app.jwt.header=Authorization +smartharvester.app.jwtSecret=dora +smartharvester.app.jwtExpirationMs=86400000 +smartharvester.app.jwt.route.authentication.path=/auth +smartharvester.app.jwt.route.authentication.refresh=/refresh + +# 7. Swagger +springdoc.api-docs.path=/smart-docs +springdoc.swagger-ui.path=/smart-harvester/open-api.html +springdoc.model-and-view-allowed=false + + +# 8. Error Handling +server.error.whitelabel.enabled=false +server.error.path=/error diff --git a/src/main/resources/application-prod.properties b/src/main/resources/application-prod.properties index ecb4d25..5805e4e 100644 --- a/src/main/resources/application-prod.properties +++ b/src/main/resources/application-prod.properties @@ -1,5 +1,3 @@ -#2. Application configuration. -server.port=8080 # 3. MongoDB configuration. spring.data.mongodb.uri=mongodb://admin:adminadmin@mongo2.f2ds.svc.cluster.local:27017/fdp?authSource=admin @@ -21,3 +19,35 @@ spring.security.oauth2.client.registration.oidc.redirect-uri=https://f2ds.eosc-p +# SMART HARVESTER Application Properties +spring.profiles.active=@activatedProperties@ +# 1. For pretty print +spring.jackson.serialization.indent-output=true + +#2. Application configuration. +server.port=8080 + + +# 4. Logging configuration. +logging.level.com.assignment.springboot.mongo=DEBUG +logging.pattern.console= %d{yyyy-MM-dd HH:mm:ss} - %msg%n + +# 5. CORS +cors.allowed-origins = http://localhost:4200 + +# 6.JWT +smartharvester.app.jwt.header=Authorization +smartharvester.app.jwtSecret=dora +smartharvester.app.jwtExpirationMs=86400000 +smartharvester.app.jwt.route.authentication.path=/auth +smartharvester.app.jwt.route.authentication.refresh=/refresh + +# 7. Swagger +springdoc.api-docs.path=/smart-docs +springdoc.swagger-ui.path=/smart-harvester/open-api.html +springdoc.model-and-view-allowed=false + + +# 8. Error Handling +server.error.whitelabel.enabled=false +server.error.path=/error diff --git a/src/main/resources/application-staging.properties b/src/main/resources/application-staging.properties index 29cda3f..3927745 100644 --- a/src/main/resources/application-staging.properties +++ b/src/main/resources/application-staging.properties @@ -1,4 +1,3 @@ -server.port=8080 # 3. MongoDB configuration. spring.data.mongodb.uri=mongodb://admin:adminadmin@mongo2.f2ds.svc.cluster.local:27017/fdp?authSource=admin @@ -16,4 +15,37 @@ spring.security.oauth2.client.provider.oidc.issuer-uri=https://iam-pillar.cloud. spring.security.oauth2.client.registration.oidc.client-id=a03a6ac2-acfe-4916-9d0f-db874ea94e75 spring.security.oauth2.client.registration.oidc.client-secret=cLONCJ8MccdHwobCEMSl_sYDJGKpmBxH16SyiRIBx8XeoDa2ZLwzTvF_aVoEeOt3h2sNbZqltRqhfHKeI3g7Dw spring.security.oauth2.client.registration.oidc.scope=address,phone,openid,email,profile -spring.security.oauth2.client.registration.oidc.redirect-uri=https://f2ds-dev.eosc-pillar.eu/callback \ No newline at end of file +spring.security.oauth2.client.registration.oidc.redirect-uri=https://f2ds-dev.eosc-pillar.eu/callback + +# SMART HARVESTER Application Properties +spring.profiles.active=@activatedProperties@ +# 1. For pretty print +spring.jackson.serialization.indent-output=true + +#2. Application configuration. +server.port=8080 + + +# 4. Logging configuration. +logging.level.com.assignment.springboot.mongo=DEBUG +logging.pattern.console= %d{yyyy-MM-dd HH:mm:ss} - %msg%n + +# 5. CORS +cors.allowed-origins = http://localhost:4200 + +# 6.JWT +smartharvester.app.jwt.header=Authorization +smartharvester.app.jwtSecret=dora +smartharvester.app.jwtExpirationMs=86400000 +smartharvester.app.jwt.route.authentication.path=/auth +smartharvester.app.jwt.route.authentication.refresh=/refresh + +# 7. Swagger +springdoc.api-docs.path=/smart-docs +springdoc.swagger-ui.path=/smart-harvester/open-api.html +springdoc.model-and-view-allowed=false + + +# 8. Error Handling +server.error.whitelabel.enabled=false +server.error.path=/error -- GitLab