Microservice responsible for providing all the information regarding the products managed by selfcare. It is needed for identify which product is valid for onboarding, which roles is enabled on product and if this one is delegable for a technology partner
Before running you must set these properties as environment variables.
Property | Environment Variable | Default | Required |
---|---|---|---|
spring.data.mongodb.uri |
MONGODB_CONNECTION_URI | yes | |
jwt.signingKey |
JWT_TOKEN_PUBLIC_KEY | yes |
You can run your application using:
./mvnw install
./mvnw spring-boot:run -pl app
Application will respond to the url http://localhost:8080
Application properties |
---|
Property | Enviroment Variable | Default | Required |
---|---|---|---|
server.port | MS_PRODUCT_SERVER_PORT | default_property | yes |
spring.application.name | n/a | default_property | yes |
spring.application.version | n/a | default_property | yes |
spring.profiles.include | n/a | default_property | yes |
spring.zipkin.enabled | n/a | default_property | yes |
spring.sleuth.baggage.remote-fields | n/a | default_property | yes |
spring.sleuth.baggage.correlation-fields | n/a | default_property | yes |
info.build.artifact | n/a | default_property | yes |
info.build.name | n/a | default_property | yes |
info.build.description | n/a | default_property | yes |
info.build.version | n/a | default_property | yes |
logging.level.it.pagopa.selfcare | MS_PRODUCT_LOG_LEVEL | default_property | yes |
logging.pattern.level | n/a | default_property | yes |
Azure Storage Configurations |
---|
Property | Enviroment Variable | Default | Required |
---|---|---|---|
blobStorage.connectionString | BLOB_STORAGE_CONN_STRING | default_property | yes |
blobStorage.product.img.containerReference | BLOB_CONTAINER_REF | default_property | yes |
blobStorage.product.upload.host | BLOBSTORAGE_PUBLIC_HOST | default_property | yes |
Dao Configurations |
---|
Property | Enviroment Variable | Default | Required |
---|---|---|---|
spring.data.mongodb.uri | MONGODB_CONNECTION_URI | default_property | yes |
spring.data.mongodb.database | MONGODB_NAME | default_property | yes |
Core Configurations |
---|
Property | Enviroment Variable | Default | Required |
---|---|---|---|
product.img.logo.allowed-mime-types | PRODUCT_LOGO_ALLOWED_MIME_TYPES | default_property | yes |
product.img.logo.allowed-extensions | PRODUCT_LOGO_ALLOWED_EXTENSIONS | default_property | yes |
product.img.logo.default-url | LOGO_STORAGE_URL | default_property | yes |
product.img.logo.default-url | PUBLIC_FILE_STORAGE_BASE_URL | default_property | yes |
product.img.depiction.allowed-mime-types | PRODUCT_DEPICT_ALLOWED_MIME_TYPES | default_property | yes |
product.img.depiction.allowed-extensions | PRODUCT_DEPICT_ALLOWED_EXTENSIONS | default_property | yes |
product.img.logo.default-url | DEPICT_IMAGE_URL | default_property | yes |
product.img.logo.default-url | PUBLIC_FILE_STORAGE_BASE_URL | default_property | yes |
Web Configurations |
---|
Property | Enviroment Variable | Default | Required |
---|---|---|---|
spring.servlet.multipart.max-file-size | MULTIPART_MAX_FILE_SIZE | default_property | yes |
spring.servlet.multipart.resolve-lazily | n/a | default_property | yes |
spring.servlet.multipart.file-size-threshold | MULTIPART_MAX_FILE_SIZE | default_property | yes |