mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-04 09:44:21 +00:00 
			
		
		
		
	modules/setting: mirror path issue
This commit is contained in:
		@@ -237,7 +237,7 @@ func NewConfigContext() {
 | 
				
			|||||||
	ReverseProxyAuthUser = sec.Key("REVERSE_PROXY_AUTHENTICATION_USER").MustString("X-WEBAUTH-USER")
 | 
						ReverseProxyAuthUser = sec.Key("REVERSE_PROXY_AUTHENTICATION_USER").MustString("X-WEBAUTH-USER")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	sec = Cfg.Section("attachment")
 | 
						sec = Cfg.Section("attachment")
 | 
				
			||||||
	AttachmentPath = sec.Key("PATH").MustString("data/attachments")
 | 
						AttachmentPath = path.Join(workDir, sec.Key("PATH").MustString("data/attachments"))
 | 
				
			||||||
	AttachmentAllowedTypes = sec.Key("ALLOWED_TYPES").MustString("image/jpeg|image/png")
 | 
						AttachmentAllowedTypes = sec.Key("ALLOWED_TYPES").MustString("image/jpeg|image/png")
 | 
				
			||||||
	AttachmentMaxSize = sec.Key("MAX_SIZE").MustInt64(32)
 | 
						AttachmentMaxSize = sec.Key("MAX_SIZE").MustInt64(32)
 | 
				
			||||||
	AttachmentMaxFiles = sec.Key("MAX_FILES").MustInt(10)
 | 
						AttachmentMaxFiles = sec.Key("MAX_FILES").MustInt(10)
 | 
				
			||||||
@@ -294,7 +294,7 @@ func NewConfigContext() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	sec = Cfg.Section("picture")
 | 
						sec = Cfg.Section("picture")
 | 
				
			||||||
	PictureService = sec.Key("SERVICE").In("server", []string{"server"})
 | 
						PictureService = sec.Key("SERVICE").In("server", []string{"server"})
 | 
				
			||||||
	AvatarUploadPath = sec.Key("AVATAR_UPLOAD_PATH").MustString("data/avatars")
 | 
						AvatarUploadPath = path.Join(workDir, sec.Key("AVATAR_UPLOAD_PATH").MustString("data/avatars"))
 | 
				
			||||||
	os.MkdirAll(AvatarUploadPath, os.ModePerm)
 | 
						os.MkdirAll(AvatarUploadPath, os.ModePerm)
 | 
				
			||||||
	switch sec.Key("GRAVATAR_SOURCE").MustString("gravatar") {
 | 
						switch sec.Key("GRAVATAR_SOURCE").MustString("gravatar") {
 | 
				
			||||||
	case "duoshuo":
 | 
						case "duoshuo":
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user