fixes in gitea

Co-authored-by: omda <mahmmoud.hassanein@gmail.com>
This commit is contained in:
2025-01-08 21:22:49 +02:00
parent de7c3ad36c
commit a63bba4558
4 changed files with 91 additions and 43 deletions

View File

@@ -3,31 +3,32 @@
import freeflowuniverse.herolib.installers.infra.gitea as gitea_installer
// First of all, we need to set the gitea configuration
heroscript := "
!!gitea.configure
name:'default'
version:'1.22.6'
path: '/data/gitea'
passwd: '12345678'
postgresql_name: 'default'
mail_from: 'git@meet.tf'
smtp_addr: 'smtp-relay.brevo.com'
smtp_login: 'admin'
smtp_port: 587
smtp_passwd: '12345678'
domain: 'meet.tf'
jwt_secret: ''
lfs_jwt_secret: ''
internal_token: ''
secret_key: ''
"
// heroscript := "
// !!gitea.configure
// name:'default'
// version:'1.22.6'
// path: '/var/lib/git'
// passwd: '12345678'
// postgresql_name: 'default'
// mail_from: 'git@meet.tf'
// smtp_addr: 'smtp-relay.brevo.com'
// smtp_login: 'admin'
// smtp_port: 587
// smtp_passwd: '12345678'
// domain: 'meet.tf'
// jwt_secret: ''
// lfs_jwt_secret: ''
// internal_token: ''
// secret_key: ''
// "
gitea_installer.play(
name: 'default'
heroscript: heroscript
)!
// gitea_installer.play(
// name: 'default'
// heroscript: heroscript
// )!
// Then we need to get an instace of the installer and call the install
mut gitea := gitea_installer.get(name: 'default')!
mut gitea := gitea_installer.get()!
println('gitea configs: ${gitea}')
gitea.install()!
gitea.start()!