Skip to content

Configuration

Shalauddin Ahamad Shuza edited this page Sep 20, 2017 · 1 revision

To connect with MySQL database we will use JDBC. Do the required changes in conf/application.conf file

db {
  # https://www.playframework.com/documentation/latest/Developing-with-the-H2-Database
  default.driver = com.mysql.jdbc.Driver
  default.url = "jdbc:mysql://localhost/rest_db"        # Change to Database URL
  default.username = "root"                             # Change to Database User
  default.password = "abcd1234"                         # Change to Database Password

  # You can turn on SQL logging for any datasource
  # https://www.playframework.com/documentation/latest/Highlights25#Logging-SQL-statements
  default.logSql = true
}

Now we also need Minio server configuration. Write minio server configuration in the same file conf/application.conf

minioConfig {
  msHost = "http://localhost:9000/api/v1"                # Change to Server Url
  msUri = "http://localhost:9000"                        # Change to Minio URL
  msSecrete = "asdfasdfasdf"                             # Change to Minio Secrete Key
  msAccessToken = "23123fasfasdf"                        # Change to Minio Access Token
}
Clone this wiki locally