mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-30 00:01:24 +00:00
fix installation page ssh domain unavilable
This commit is contained in:
parent
ba134bd27a
commit
7802699f52
|
@ -40,7 +40,7 @@ func InstallInit(ctx *context.Context) {
|
||||||
ctx.Data["Title"] = ctx.Tr("install.install")
|
ctx.Data["Title"] = ctx.Tr("install.install")
|
||||||
ctx.Data["PageIsInstall"] = true
|
ctx.Data["PageIsInstall"] = true
|
||||||
|
|
||||||
dbOpts := []string{"MySQL", "PostgreSQL","MSSQL"}
|
dbOpts := []string{"MySQL", "PostgreSQL", "MSSQL"}
|
||||||
if models.EnableSQLite3 {
|
if models.EnableSQLite3 {
|
||||||
dbOpts = append(dbOpts, "SQLite3")
|
dbOpts = append(dbOpts, "SQLite3")
|
||||||
}
|
}
|
||||||
|
@ -254,7 +254,7 @@ func InstallPost(ctx *context.Context, form auth.InstallForm) {
|
||||||
cfg.Section("").Key("APP_NAME").SetValue(form.AppName)
|
cfg.Section("").Key("APP_NAME").SetValue(form.AppName)
|
||||||
cfg.Section("repository").Key("ROOT").SetValue(form.RepoRootPath)
|
cfg.Section("repository").Key("ROOT").SetValue(form.RepoRootPath)
|
||||||
cfg.Section("").Key("RUN_USER").SetValue(form.RunUser)
|
cfg.Section("").Key("RUN_USER").SetValue(form.RunUser)
|
||||||
cfg.Section("server").Key("DOMAIN").SetValue(form.Domain)
|
cfg.Section("server").Key("SSH_DOMAIN").SetValue(form.Domain)
|
||||||
cfg.Section("server").Key("HTTP_PORT").SetValue(form.HTTPPort)
|
cfg.Section("server").Key("HTTP_PORT").SetValue(form.HTTPPort)
|
||||||
cfg.Section("server").Key("ROOT_URL").SetValue(form.AppURL)
|
cfg.Section("server").Key("ROOT_URL").SetValue(form.AppURL)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue