Complete installation without user interaction #8912

Closed
opened 2025-11-02 08:22:59 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @osresearch on GitHub (May 5, 2022).

Feature Description

For building automated deployments it would be helpful if the installation could be completed without requiring any user interaction on the website. My scripts pre-provision all of the database, hostnames, etc information via the environment, but the scripts can't setup extra features like single-sign-on OIDC login until the database has been initialized by someone loading the install page and clicking "Install Gitea" at the bottom.

This could be done either via an environment var that says "everything is configured" or if there was an gitea admin command that would finalize the install and build the database.

Screenshots

No response

Originally created by @osresearch on GitHub (May 5, 2022). ### Feature Description For building automated deployments it would be helpful if the installation could be completed without requiring any user interaction on the website. My scripts pre-provision all of the database, hostnames, etc information via the environment, but the scripts can't setup extra features like single-sign-on OIDC login until the database has been initialized by someone loading the install page and clicking "`Install Gitea`" at the bottom. This could be done either via an environment var that says "everything is configured" or if there was an `gitea admin` command that would finalize the install and build the database. ### Screenshots _No response_
GiteaMirror added the type/proposaltype/feature labels 2025-11-02 08:22:59 -06:00
Author
Owner

@osresearch commented on GitHub (May 5, 2022):

I've tried using curl to POST the form data to the web site, but it looks like there might be some cookie management that needs to be done to get gitea to accept it.

@osresearch commented on GitHub (May 5, 2022): I've tried using `curl` to `POST` the form data to the web site, but it looks like there might be some cookie management that needs to be done to get `gitea` to accept it.
Author
Owner

@wxiaoguang commented on GitHub (May 5, 2022):

Set INSTALL_LOCK=true in app.ini means the instance has been installed, then no installation page.

And you can refer to the helmchart config.

Feel free to reopen if you meet other problems.

@wxiaoguang commented on GitHub (May 5, 2022): Set `INSTALL_LOCK=true` in `app.ini` means the instance has been installed, then no installation page. And you can refer to the helmchart config. Feel free to reopen if you meet other problems.
Author
Owner

@osresearch commented on GitHub (May 5, 2022):

Awesome! That worked, thanks!

@osresearch commented on GitHub (May 5, 2022): Awesome! That worked, thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#8912