mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-10-30 22:11:07 +00:00 
			
		
		
		
	[BRANDING] Rebrand default config settings for new installs (#140)
Replaces `Gitea` with `Forgejo` in the default config settings for new installs. This will not affect existing installs. Co-authored-by: Caesar Schinas <caesar@caesarschinas.com> Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/140 Co-authored-by: Caesar Schinas <caesar@noreply.codeberg.org> Co-committed-by: Caesar Schinas <caesar@noreply.codeberg.org> (cherry picked from commitca1319aa16) (cherry picked from commit52a4d238a0) (cherry picked from commitf63536538c) Conflicts: web_src/js/features/install.js (cherry picked from commit861cc434e1) (cherry picked from commit0e6ea60c80) (cherry picked from commit0cbc0ec15d) (cherry picked from commit3cc19b0ae2)
This commit is contained in:
		
					parent
					
						
							
								b48e3e896d
							
						
					
				
			
			
				commit
				
					
						50fcb885fe
					
				
			
		
					 6 changed files with 7 additions and 7 deletions
				
			
		|  | @ -79,7 +79,7 @@ func loadDBSetting(rootCfg ConfigProvider) { | |||
| 		log.Error("Deprecated database mysql charset utf8 support, please use utf8mb4 or convert utf8 to utf8mb4.") | ||||
| 	} | ||||
| 
 | ||||
| 	Database.Path = sec.Key("PATH").MustString(filepath.Join(AppDataPath, "gitea.db")) | ||||
| 	Database.Path = sec.Key("PATH").MustString(filepath.Join(AppDataPath, "forgejo.db")) | ||||
| 	Database.Timeout = sec.Key("SQLITE_TIMEOUT").MustInt(500) | ||||
| 	Database.SQLiteJournalMode = sec.Key("SQLITE_JOURNAL_MODE").MustString("") | ||||
| 
 | ||||
|  |  | |||
|  | @ -275,7 +275,7 @@ func loadRepositoryFrom(rootCfg ConfigProvider) { | |||
| 	Repository.UseCompatSSHURI = sec.Key("USE_COMPAT_SSH_URI").MustBool() | ||||
| 	Repository.MaxCreationLimit = sec.Key("MAX_CREATION_LIMIT").MustInt(-1) | ||||
| 	Repository.DefaultBranch = sec.Key("DEFAULT_BRANCH").MustString(Repository.DefaultBranch) | ||||
| 	RepoRootPath = sec.Key("ROOT").MustString(path.Join(AppDataPath, "gitea-repositories")) | ||||
| 	RepoRootPath = sec.Key("ROOT").MustString(path.Join(AppDataPath, "forgejo-repositories")) | ||||
| 	forcePathSeparator(RepoRootPath) | ||||
| 	if !filepath.IsAbs(RepoRootPath) { | ||||
| 		RepoRootPath = filepath.Join(AppWorkPath, RepoRootPath) | ||||
|  |  | |||
|  | @ -167,7 +167,7 @@ func MakeAbsoluteAssetURL(appURL, staticURLPrefix string) string { | |||
| 
 | ||||
| func loadServerFrom(rootCfg ConfigProvider) { | ||||
| 	sec := rootCfg.Section("server") | ||||
| 	AppName = rootCfg.Section("").Key("APP_NAME").MustString("Gitea: Git with a cup of tea") | ||||
| 	AppName = rootCfg.Section("").Key("APP_NAME").MustString("Forgejo: Beyond coding. We Forge.") | ||||
| 
 | ||||
| 	Domain = sec.Key("DOMAIN").MustString("localhost") | ||||
| 	HTTPAddr = sec.Key("HTTP_ADDR").MustString("0.0.0.0") | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue