Update application.properties for production deployment
- Set static MySQL connection with IP and password - Changed server port from 8081 to 8080 - Enabled HTTPS with keystore configuration - Exposed actuator endpoints for monitoring - Removed old and unused commented-out configurations
This commit is contained in:
@@ -10,8 +10,8 @@ security.jwt.expiration-time=3600000
|
|||||||
|
|
||||||
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQLDialect
|
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQLDialect
|
||||||
spring.datasource.username=skycrateDB
|
spring.datasource.username=skycrateDB
|
||||||
spring.datasource.password=${MYSQL_PASSWORD}
|
spring.datasource.password=loa_dngLLA8729
|
||||||
spring.datasource.url=jdbc:mysql://db:3306/skycrate
|
spring.datasource.url=jdbc:mysql://192.168.29.36:3306/skycrate
|
||||||
|
|
||||||
spring.jpa.hibernate.ddl-auto=update
|
spring.jpa.hibernate.ddl-auto=update
|
||||||
spring.jpa.show-sql=true
|
spring.jpa.show-sql=true
|
||||||
@@ -19,26 +19,21 @@ spring.jpa.properties.hibernate.format_sql=true
|
|||||||
spring.jpa.open-in-view=false
|
spring.jpa.open-in-view=false
|
||||||
logging.level.org.springframework.security.config.annotation.authentication.configuration.InitializeUserDetailsBeanManagerConfigurer=ERROR
|
logging.level.org.springframework.security.config.annotation.authentication.configuration.InitializeUserDetailsBeanManagerConfigurer=ERROR
|
||||||
|
|
||||||
server.port=8081
|
server.port=8080
|
||||||
|
|
||||||
|
server.ssl.enabled=true
|
||||||
|
server.ssl.key-store=classpath:keystore.p12
|
||||||
|
server.ssl.key-store-password=changeit
|
||||||
|
server.ssl.key-store-type=PKCS12
|
||||||
|
server.ssl.key-alias=mykey
|
||||||
|
|
||||||
|
management.endpoints.web.exposure.include=*
|
||||||
|
management.endpoint.health.show-details=always
|
||||||
|
management.endpoints.enabled-by-default=true
|
||||||
|
|
||||||
|
|
||||||
|
# Allow unauthenticated access
|
||||||
|
#management.server.port=8080
|
||||||
# spring.application.name=skycrateBackend
|
#management.server.ssl.enabled=false
|
||||||
|
#management.endpoints.web.base-path=/actuator
|
||||||
# spring.servlet.multipart.max-file-size=1000MB
|
#management.endpoints.web.exposure.include=*
|
||||||
# spring.servlet.multipart.max-request-size=1000MB
|
|
||||||
|
|
||||||
# security.jwt.secret-key=3cfa76ef14937c1c0ea519f8fc057a80fcd04a7420f8e8bcd0a7567c272e007b
|
|
||||||
# security.jwt.expiration-time=3600000
|
|
||||||
|
|
||||||
# spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQLDialect
|
|
||||||
# spring.datasource.username=root
|
|
||||||
# spring.datasource.password=sqlsys
|
|
||||||
# spring.datasource.url=jdbc:mysql://localhost:3306/skycrate
|
|
||||||
|
|
||||||
# spring.jpa.hibernate.ddl-auto=update
|
|
||||||
# spring.jpa.show-sql=true
|
|
||||||
# spring.jpa.properties.hibernate.format_sql=true
|
|
||||||
|
|
||||||
# server.port=8081
|
|
||||||
|
|||||||
Reference in New Issue
Block a user