Skip to content

feat:set both mysql and pg configs in .env #490

@longbingljw

Description

@longbingljw

Self Checks

To make sure we get to you in time, please check the following :)

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • "Please do not modify this template :) and fill in all the required fields."

Is your feature request related to a problem? Please describe.
I am adapting mysql for dify.I found that dify-plugin-daemon's db connection message is not east to switch in docker-compose.yaml.So I think it is a good idea to set both mysql config and pg config in .env.example.So user can only change DB_TYPE to switch db config for plugin-daemon.

Describe the solution you'd like
Set separate USERNAME, PASSWORD, HOST, and PORT for both PostgreSQL and MySQL in the .env file, and use DB_TYPE to control which set of credentials to use for the database connection.

Describe alternatives you've considered
No.

Additional context
I hope this feat can be handle as fast as passible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions