Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ ENV JAVA_OPTS=$JAVA_OPTS
ARG JAR_FILE=target/*.jar
COPY ${JAR_FILE} basyxExecutable.jar

COPY src/main/resources/application.yml application.yml
COPY src/main/resources/application-MongoDB.yml application-MongoDB.yml
COPY src/main/resources/application-InMemory.yml application-InMemory.yml
COPY src/main/resources/application.properties application.properties
COPY src/main/resources/application-MongoDB.properties application-MongoDB.properties
COPY src/main/resources/application-InMemory.properties application-InMemory.properties

ARG PORT=8081
ENV SERVER_PORT=${PORT}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,15 @@
@ComponentScan.Filter(
type = FilterType.ASSIGNABLE_TYPE,
value = org.eclipse.digitaltwin.basyx.aasdiscoveryservice.http.documentation.AasDiscoveryServiceApiDocumentationConfiguration.class
)
),
@ComponentScan.Filter(
type = FilterType.ASSIGNABLE_TYPE,
value = org.eclipse.digitaltwin.basyx.authorization.rbac.KeycloakRoleProvider.class
),
@ComponentScan.Filter(
type = FilterType.ASSIGNABLE_TYPE,
value = org.eclipse.digitaltwin.basyx.authorization.KeycloakSubjectInformationProvider.class
),
}
)
public class DigitalTwinRegistry {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
basyx.backend=InMemory
registry.type=InMemory
registry.discovery.enabled=true

spring.config.activate.on-profile=InMemory

spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration,org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
basyx.backend=MongoDB
basyx.aasdiscoveryservice.mongodb.collectionName=${AUTHENTICATION_DATABASE:db-name}
registry.type=MongoDB
registry.discovery.enabled=true
spring.config.activate.on-profile=MongoDB
spring.data.mongodb.authentication-database=${AUTHENTICATION_DATABASE:db-name}
spring.data.mongodb.database=${AUTHENTICATION_DATABASE:db-name}
spring.data.mongodb.host=${DATABASE_HOST:localhost}
spring.data.mongodb.port=${DATABASE_PORT:27017}
spring.data.mongodb.username=${DATABASE_USERNAME:db-username}
spring.data.mongodb.password=${DATABASE_PASSWORD:db-password}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
spring.application.name=BaSyx Digital Twin Registry
spring.profiles.active=logEvents,${SPRING_PROFILE:InMemory}
spring.main.allow-bean-definition-overriding=true
basyx.cors.allowed-methods=GET,POST,PATCH,DELETE,PUT,OPTIONS,HEAD
basyx.cors.allowed-origins=*
basyx.feature.authorization.enabled=false
basyx.feature.authorization.type=rbac
basyx.feature.authorization.jwtBearerTokenProvider=keycloak
basyx.feature.authorization.rbac.file=file:/file/rbac_rules.json
basyx.aasregistry.feature.discoveryintegration.enabled=true
basyx.aasregistry.feature.discoveryintegration.baseUrl=http://localhost:8081
basyx.endpoints.web.exposure.include=health,metrics,mappings
description.profiles=https://admin-shell.io/aas/API/3/0/AssetAdministrationShellRegistryServiceSpecification/SSP-001, https://admin-shell.io/aas/API/3/0/AssetAdministrationShellRegistryServiceSpecification/SSP-002, https://admin-shell.io/aas/API/3/0/DiscoveryServiceSpecification/SSP-001
logging.level.root=${LOGGING_LEVEL:INFO}
logging.level.org.eclipse.digitaltwin.basyx=${LOGGING_LEVEL:INFO}
server.port=8081
spring.security.oauth2.resourceserver.jwt.issuer-uri=https://dummy/realms/BaSyx
springdoc.api-docs.enabled=true
springdoc.swagger-ui.enabled=true
springdoc.swagger-ui.path=/swagger-ui.html
springdoc.swagger-ui.csrf.enabled=false

This file was deleted.