Skip to content

Commit

Permalink
feat: included also local properties to comunicate to minikube servic…
Browse files Browse the repository at this point in the history
…es and local services
  • Loading branch information
matheusrosendo committed Dec 23, 2024
1 parent 5672603 commit 26530e3
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ out/

*.hprof

src/main/resources/application.local*.properties
gradle.properties
40 changes: 40 additions & 0 deletions src/main/resources/application.local-minikube.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
server.port=9999

# spring JPA
spring.jpa.open-in-view = false
#spring.jpa.hibernate.ddl-auto=update

# http request handling
server.error.include-stacktrace = never

# logging
logging.level.web = TRACE


# OCN Nodep
ocn.node.dev = true
ocn.node.signatures = false
ocn.node.url = http://localhost:9999
ocn.node.apikey = randomkey
ocn.node.web3.provider = http://localhost:8555
ocn.node.web3.contracts.ocnRegistry = 0x524b431C122B1FE8352Ff243C18FF6d8E8d3307c
ocn.node.privatekey = 9df16a85d24a0dab6fb2bc5c57e1068ed47d56d7518e9b0eaf1712cae718ded6
ocn.node.apiPrefix: ocn-v2

# default connection pool
spring.datasource.hikari.connectionTimeout=20000
spring.datasource.hikari.maximumPoolSize=5

# database
spring.datasource.url=jdbc:postgresql://localhost:5432/ocn_node
spring.datasource.username=postgres
spring.datasource.password=minikube

# migrates on startup
spring.jpa.hibernate.ddl-auto=update

# disable feature detection by this undocumented parameter. Check the org.hibernate.engine.jdbc.internal.JdbcServiceImpl.configure method for more details.
spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults = false

# Because detection is disabled you have to set correct dialect by hand.
spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect
40 changes: 40 additions & 0 deletions src/main/resources/application.local-volta.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
server.port=9999

# spring JPA
spring.jpa.open-in-view = false
#spring.jpa.hibernate.ddl-auto=update

# http request handling
server.error.include-stacktrace = never

# logging
logging.level.web = DEBUG


# OCN Nodep
ocn.node.dev = true
ocn.node.signatures = false
ocn.node.url = http://localhost:9999
ocn.node.apikey = randomkey
ocn.node.web3.provider = https://volta-rpc.energyweb.org/
ocn.node.web3.contracts.ocnRegistry = 0x1934D4a099Ce4B9FB5350B8Db4a63dD4949eF6cB
ocn.node.privatekey = 9df16a85d24a0dab6fb2bc5c57e1068ed47d56d7518e9b0eaf1712cae718ded6
ocn.node.apiPrefix: ocn-v2

# default connection pool
spring.datasource.hikari.connectionTimeout=20000
spring.datasource.hikari.maximumPoolSize=5

# database
spring.datasource.url=jdbc:postgresql://localhost:5432/ocn_node
spring.datasource.username=postgres
spring.datasource.password=minikube

# migrates on startup
spring.jpa.hibernate.ddl-auto=update

# disable feature detection by this undocumented parameter. Check the org.hibernate.engine.jdbc.internal.JdbcServiceImpl.configure method for more details.
spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults = false

# Because detection is disabled you have to set correct dialect by hand.
spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect

0 comments on commit 26530e3

Please sign in to comment.