-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the PDA-ENTITY wiki!
GETTING STARTED
- Git
- Docker
Note: Before installing the application, we need to create an AWS public bucket
Building the library
git clone https://github.com/arghyam/PDA-ENTITY.git
cd PDA-ENTITY
git checkout patch/POC
Copy the below list of configuration and add it to application.properties file inside src/main/resources folder, insert the values with proper configuration details.
server.port=9092
hibernate.dialect=org.hibernate.dialect.MySQLDialect
#aws s3 Configuration
aws-accesskey=""
aws-secretkey=""
aws-s3-bucket-name=""
aws-s3-url=""
#name of the private bucket
aws-s3-bucket-name-private=""
#url of the private bucket
aws-s3-url-private=""
aws-region=""
aws-qrcode=qr-code/
#Encryption Values
salt-value= #In case to change the value refer PDA-WEB wiki
iv-value= #In case to change the value refer PDA-WEB wiki
secret-key= #In case to change the value refer PDA-WEB wiki
key-size=128
iteration-count=1000
#Database Configuration
spring.jpa.database=POSTGRESQL
spring.datasource.platform=postgres
spring.datasource.url=jdbc:postgresql://localhost:5432/pda_entity
spring.datasource.username=postgres
spring.datasource.password=password
spring.jpa.show-sql=true
spring.jpa.generate-ddl=true
spring.jpa.hibernate.ddl-auto=update
spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true
#Application Base url
iam-baseurl=http://localhost:9090/api/v2/user/
spring.servlet.multipart.enabled=true
# Threshold after which files are written to disk.
spring.servlet.multipart.file-size-threshold=2KB
# Max file size.
spring.servlet.multipart.max-file-size=500MB
# Max Request Size
spring.servlet.multipart.max-request-size=550MB
spring.main.allow-bean-definition-overriding=true
#Log Module
log.location=
org.springframework.boot.logging.LoggingSystem=none
management.endpoints.web.exposure.include=prometheus
org.springframework.boot.logging.LoggingSystem=none
file-folder-path=PDA-ENTITY/src/main/resources/templates/
member-attestation-template-path=MemberAttestation.html
trainee-attestation-template-path=PDA-TraineeAttestation.html
profile-front-template-path=ProfileFrontTemplate.html
registry-base-url=http://localhost:8090/ #Registry base URL
keycloak.principal-attribute=preferred_username
keycloak.auth-server-url=http://localhost:8080/auth/ #Keycloak URL
keycloak.realm=master
keycloak-client-id=admin-cli
keycloak.credentials.secret= #keycloak client secret key
keycloak-public-key= #keycloak realm Public key
client.granttype=password # Keycloak Grant Type
admin-user-username=admin # Keycloak login username
admin-user-password=admin # Keycloak login password
keycloak.resource=account
keycloak.bearer-only = true
Comment this section in src/main/resources/logback.xml as shown in the screenshot below. This can be uncommented and configured once logstash is configured.
openssl x509 -in <(openssl s_client -connect <KEYCLOAK_HOST>:8443 -prexit 2>/dev/null) -out keycloak.crt
docker build -t : .
docker run -dp 9092:9092 :