Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pagopa-archive/selfcare-ms-product
Microservice responsible for providing all the information regarding the products managed by selfcare
https://github.com/pagopa-archive/selfcare-ms-product
Last synced: 6 days ago
JSON representation
Microservice responsible for providing all the information regarding the products managed by selfcare
- Host: GitHub
- URL: https://github.com/pagopa-archive/selfcare-ms-product
- Owner: pagopa-archive
- Archived: true
- Created: 2021-10-07T14:06:45.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-21T13:36:56.000Z (8 months ago)
- Last Synced: 2025-02-05T02:18:59.118Z (6 days ago)
- Language: Java
- Homepage:
- Size: 710 KB
- Stars: 0
- Watchers: 8
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# Microservice ms-product
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
## Required Configuration Properties
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 |## Running the application
You can run your application using:
```shell script
./mvnw install
./mvnw spring-boot:run -pl app
```Application will respond to the url http://localhost:8080
## All Configuration Properties
| **Application properties** |
|:--------------------------:|| **Property** | **Enviroment Variable** | **Default** | **Required** |
|--------------|-------------------------|-------------|:------------:|
|server.port|MS_PRODUCT_SERVER_PORT|[default_property](https://github.com/pagopa/selfcare-ms-product/blob/release-dev/app/src/main/resources/config/application.yml)| yes |
|spring.application.name| n/a |[default_property](https://github.com/pagopa/selfcare-ms-product/blob/release-dev/app/src/main/resources/config/application.yml)| yes |
|spring.application.version| n/a |[default_property](https://github.com/pagopa/selfcare-ms-product/blob/release-dev/app/src/main/resources/config/application.yml)| yes |
|spring.profiles.include| n/a |[default_property](https://github.com/pagopa/selfcare-ms-product/blob/release-dev/app/src/main/resources/config/application.yml)| yes |
|spring.zipkin.enabled| n/a |[default_property](https://github.com/pagopa/selfcare-ms-product/blob/release-dev/app/src/main/resources/config/application.yml)| yes |
|spring.sleuth.baggage.remote-fields| n/a |[default_property](https://github.com/pagopa/selfcare-ms-product/blob/release-dev/app/src/main/resources/config/application.yml)| yes |
|spring.sleuth.baggage.correlation-fields| n/a |[default_property](https://github.com/pagopa/selfcare-ms-product/blob/release-dev/app/src/main/resources/config/application.yml)| yes |
|info.build.artifact| n/a |[default_property](https://github.com/pagopa/selfcare-ms-product/blob/release-dev/app/src/main/resources/config/application.yml)| yes |
|info.build.name| n/a |[default_property](https://github.com/pagopa/selfcare-ms-product/blob/release-dev/app/src/main/resources/config/application.yml)| yes |
|info.build.description| n/a |[default_property](https://github.com/pagopa/selfcare-ms-product/blob/release-dev/app/src/main/resources/config/application.yml)| yes |
|info.build.version| n/a |[default_property](https://github.com/pagopa/selfcare-ms-product/blob/release-dev/app/src/main/resources/config/application.yml)| yes |
|logging.level.it.pagopa.selfcare| MS_PRODUCT_LOG_LEVEL |[default_property](https://github.com/pagopa/selfcare-ms-product/blob/release-dev/app/src/main/resources/config/application.yml)| yes |
|logging.pattern.level| n/a |[default_property](https://github.com/pagopa/selfcare-ms-product/blob/release-dev/app/src/main/resources/config/application.yml)| yes || **Azure Storage Configurations** |
|:--------------------------:|| **Property** | **Enviroment Variable** | **Default** | **Required** |
|--------------|-------------------------|-------------|:------------:|
|blobStorage.connectionString|BLOB_STORAGE_CONN_STRING|[default_property](https://github.com/pagopa/selfcare-ms-product/blob/release-dev/connector/azure-storage/src/main/resources/config/azure-storage-config.properties)| yes |
|blobStorage.product.img.containerReference|BLOB_CONTAINER_REF|[default_property](https://github.com/pagopa/selfcare-ms-product/blob/release-dev/connector/azure-storage/src/main/resources/config/azure-storage-config.properties)| yes |
|blobStorage.product.upload.host|BLOBSTORAGE_PUBLIC_HOST|[default_property](https://github.com/pagopa/selfcare-ms-product/blob/release-dev/connector/azure-storage/src/main/resources/config/azure-storage-config.properties)| yes || **Dao Configurations** |
|:--------------------------:|| **Property** | **Enviroment Variable** | **Default** | **Required** |
|--------------|-------------------------|-------------|:------------:|
|spring.data.mongodb.uri|MONGODB_CONNECTION_URI|[default_property](https://github.com/pagopa/selfcare-ms-product/blob/release-dev/connector/dao/src/main/resources/config/dao-config.properties)| yes |
|spring.data.mongodb.database|MONGODB_NAME|[default_property](https://github.com/pagopa/selfcare-ms-product/blob/release-dev/connector/dao/src/main/resources/config/dao-config.properties)| yes || **Core Configurations** |
|:--------------------------:|| **Property** | **Enviroment Variable** | **Default** | **Required** |
|------------------------------------------|-------------------------|-------------|:------------:|
| product.img.logo.allowed-mime-types |PRODUCT_LOGO_ALLOWED_MIME_TYPES|[default_property](https://github.com/pagopa/selfcare-ms-product/blob/release-dev/core/src/main/resources/config/core-config.properties)| yes |
| product.img.logo.allowed-extensions |PRODUCT_LOGO_ALLOWED_EXTENSIONS|[default_property](https://github.com/pagopa/selfcare-ms-product/blob/release-dev/core/src/main/resources/config/core-config.properties)| yes |
| product.img.logo.default-url |LOGO_STORAGE_URL|[default_property](https://github.com/pagopa/selfcare-ms-product/blob/release-dev/core/src/main/resources/config/core-config.properties)| yes |
| product.img.logo.default-url |PUBLIC_FILE_STORAGE_BASE_URL|[default_property](https://github.com/pagopa/selfcare-ms-product/blob/release-dev/core/src/main/resources/config/core-config.properties)| yes |
| product.img.depiction.allowed-mime-types |PRODUCT_DEPICT_ALLOWED_MIME_TYPES|[default_property](https://github.com/pagopa/selfcare-ms-product/blob/release-dev/core/src/main/resources/config/core-config.properties)| yes |
| product.img.depiction.allowed-extensions |PRODUCT_DEPICT_ALLOWED_EXTENSIONS|[default_property](https://github.com/pagopa/selfcare-ms-product/blob/release-dev/core/src/main/resources/config/core-config.properties)| yes |
| product.img.logo.default-url |DEPICT_IMAGE_URL|[default_property](https://github.com/pagopa/selfcare-ms-product/blob/release-dev/core/src/main/resources/config/core-config.properties)| yes |
| product.img.logo.default-url |PUBLIC_FILE_STORAGE_BASE_URL|[default_property](https://github.com/pagopa/selfcare-ms-product/blob/release-dev/core/src/main/resources/config/core-config.properties)| yes || **Web Configurations** |
|:--------------------------:|| **Property** | **Enviroment Variable** | **Default** | **Required** |
|--------------|-------------------------|-------------|:------------:|
|spring.servlet.multipart.max-file-size|MULTIPART_MAX_FILE_SIZE|[default_property](https://github.com/pagopa/selfcare-ms-product/blob/release-dev/web/src/main/resources/config/web-config.properties)| yes |
|spring.servlet.multipart.resolve-lazily| n/a |[default_property](https://github.com/pagopa/selfcare-ms-product/blob/release-dev/web/src/main/resources/config/web-config.properties)| yes |
|spring.servlet.multipart.file-size-threshold|MULTIPART_MAX_FILE_SIZE|[default_property](https://github.com/pagopa/selfcare-ms-product/blob/release-dev/web/src/main/resources/config/web-config.properties)| yes |