Skip to content

Allow using an external database during installation #502

@mustfqyl

Description

@mustfqyl

When installing PasarGuard with PostgreSQL, for example:

curl -fsSL https://github.com/PasarGuard/scripts/raw/main/pasarguard.sh -o /tmp/pg.sh \
  && sudo bash /tmp/pg.sh install --database postgresql

the installer asks the user to create/configure a local database name, username, and password.

This works for local databae setups, but not every user wants to use a local database. Some users may already have database running on another server, a managed database provider, or a separate database container.

It would be useful if the installer supported an external database option.

For example, the installer could ask;

  • Do you want to use a local database or an external database?
  • Database type
  • Database host
  • Database port
  • Database name
  • Database username
  • Database password
  • SSL mode, if needed

Desired example:

Database type: PostgreSQL
Database location: External
Host: db.example.com
Port: 5432
Database: pasarguard
Username: pasarguard
Password: ********

This would make deployments more flexible and cleaner for production environments.
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions