diff --git a/src/main/resources/application-dev.properties b/src/main/resources/application-dev.properties index 31655b6dae9febfc51d5d48be488f6dc621a46a9..308cb540e73b3bef30a754c78ecaa1075846d6c3 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 ecb4d25e43d7a169e206c2f57b9c68c3d25543f7..5805e4e7730082a371598fd28b02cdf63d18e1bc 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 29cda3f88c7d62e46ba29fefb24044907fdb6c48..3927745df8c4ae82d235ac4da8afeb170c1c8ff9 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