mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	fix #367
This commit is contained in:
		
							
								
								
									
										2
									
								
								gogs.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								gogs.go
									
									
									
									
									
								
							@@ -17,7 +17,7 @@ import (
 | 
				
			|||||||
	"github.com/gogits/gogs/modules/setting"
 | 
						"github.com/gogits/gogs/modules/setting"
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const APP_VER = "0.4.7.0824 Alpha"
 | 
					const APP_VER = "0.4.7.0825 Alpha"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func init() {
 | 
					func init() {
 | 
				
			||||||
	runtime.GOMAXPROCS(runtime.NumCPU())
 | 
						runtime.GOMAXPROCS(runtime.NumCPU())
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -156,7 +156,10 @@ func NewConfigContext() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	AppName = Cfg.MustValue("", "APP_NAME", "Gogs: Go Git Service")
 | 
						AppName = Cfg.MustValue("", "APP_NAME", "Gogs: Go Git Service")
 | 
				
			||||||
	AppLogo = Cfg.MustValue("", "APP_LOGO", "img/favicon.png")
 | 
						AppLogo = Cfg.MustValue("", "APP_LOGO", "img/favicon.png")
 | 
				
			||||||
	AppUrl = Cfg.MustValue("server", "ROOT_URL", "http://localhost:3000")
 | 
						AppUrl = Cfg.MustValue("server", "ROOT_URL", "http://localhost:3000/")
 | 
				
			||||||
 | 
						if AppUrl[len(AppUrl)-1] != '/' {
 | 
				
			||||||
 | 
							AppUrl += "/"
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	Protocol = HTTP
 | 
						Protocol = HTTP
 | 
				
			||||||
	if Cfg.MustValue("server", "PROTOCOL") == "https" {
 | 
						if Cfg.MustValue("server", "PROTOCOL") == "https" {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1 +1 @@
 | 
				
			|||||||
0.4.7.0824 Alpha
 | 
					0.4.7.0825 Alpha
 | 
				
			||||||
		Reference in New Issue
	
	Block a user