Skip to content

[Proposal] Gitea subcommand for installation #24220

Open
@lunny

Description

@lunny

Feature Description

As Gitea's configuration becomes more and more and once some configuration changes, gitea needs to be restarted. So we introduced database-based global configuration in #18058 . But once most of system configurations have been moved to database-based global configuration. For those who want to quickly set up a predefined Gitea instance, it becomes very difficult. Then I suppose we could have a subcommand which could be named install or init. i.e.

./gitea install --config gitea.yml

The subcommand will become an alternative choice of the current Web-based installation guide. It accepts a YAML configuration file. The file could contain all possible app.ini configurations, database-based global configurations and even authentication sources (LDAP, OAuth2), and some default users, orgs and etc.

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/featureCompletely new functionality. Can only be merged if feature freeze is not active.type/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions