Commit 9756fb35 authored by Siva Rama Krishna's avatar Siva Rama Krishna

enabling h2 console over browser

parent b5974ef4
...@@ -2,4 +2,7 @@ ...@@ -2,4 +2,7 @@
Spring Boot with MySQL Spring Boot with MySQL
For instructions, Please refer to the link `https://pg-gitlab-test.altimetrik.com/PlaygroundEngineeringEnv/java8_springboot-2.0.5-api-template-3.0/blob/master/EclipseCheUserGuide.pdf` For instructions, Please refer to the link `https://pg-gitlab-test.altimetrik.com/PlaygroundEngineeringEnv/java8_springboot-2.0.5-api-template-3.0/blob/master/EclipseCheUserGuide.pdf`
\ No newline at end of file
To connect to database console of the app available over `app access url`, Please refer to `/src/main/resources/db-config-k8s.properties` having the `url` and `JDBC connection properties`
\ No newline at end of file
...@@ -21,10 +21,10 @@ ingress: ...@@ -21,10 +21,10 @@ ingress:
enabled: true enabled: true
annotations: annotations:
kubernetes.io/ingress.class: nginx kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/rewrite-target: / nginx.ingress.kubernetes.io/rewrite-target: /$2
#kubernetes.io/tls-acme: "true" #kubernetes.io/tls-acme: "true"
paths: paths:
path: /SERVICE_NAME path: /SERVICE_NAME(/|$)(.*)
hosts: hosts:
# - afe6ec7ed3f3711e9b98006759708723-313212737.us-west-2.elb.amazonaws.com # - afe6ec7ed3f3711e9b98006759708723-313212737.us-west-2.elb.amazonaws.com
- pgtest.altimetrik.com - pgtest.altimetrik.com
......
...@@ -2,4 +2,7 @@ ...@@ -2,4 +2,7 @@
spring.h2.console.enabled=true spring.h2.console.enabled=true
# Custom H2 Console URL # Custom H2 Console URL
spring.h2.console.path=/h2 spring.h2.console.path=/SERVICE_NAME
# Enable Web Access
spring.h2.console.settings.web-allow-others=true
# Please use the the url 'https://pgtest.altimetrik.com/SERVICE_NAME/SERVICE_NAME/'
# to connect to the database wih the properties mentioned below.
spring.datasource.driverClassName=org.h2.Driver spring.datasource.driverClassName=org.h2.Driver
spring.datasource.username=sa spring.datasource.username=sa
spring.datasource.password= spring.datasource.password=
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment