go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
44k stars 5.4k forks source link

Set administrator username, email, and password through environment variables when using docker container #31671

Open UchihaYuki opened 1 month ago

UchihaYuki commented 1 month ago

Feature Description

Instead of manually filling these variables in the Install page, I hope to set them through environment variables.

Screenshots

image

yp05327 commented 1 month ago
  1. it is not safe to do this.
  2. if admin changed password, then should we update the old password after the container restarted?
  3. if you want to install gitea automatically, there's a script you can refer: https://gitea.com/gitea/helm-chart/src/branch/main/templates/gitea/init.yaml https://github.com/TeaChart/gitea/blob/main/templates/scripts/gitea/configure_gitea.sh