소스 검색

auth: redirect landing URL with subpath prepended (#5964)

ᴜɴᴋɴᴡᴏɴ 5 년 전
부모
커밋
8df3350252
3개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 1
      conf/app.ini
  2. 1 1
      internal/assets/conf/conf_gen.go
  3. 1 1
      internal/context/auth.go

+ 2 - 1
conf/app.ini

@@ -52,7 +52,8 @@ APP_DATA_PATH = data
 ; Whether to enable to load assets (i.e. "conf", "templates", "public") from disk instead of embedded bindata.
 LOAD_ASSETS_FROM_DISK = false
 
-; The landing page URL for anonymous users, can be a link to a external site.
+; The landing page URL for anonymous users, the value should not include
+; subpath that is handled by the reverse proxy.
 LANDING_URL = /
 
 ; Whether to disable SSH access to the application entirely.

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1 - 1
internal/assets/conf/conf_gen.go


+ 1 - 1
internal/context/auth.go

@@ -41,7 +41,7 @@ func Toggle(options *ToggleOptions) macaron.Handler {
 
 		// Check non-logged users landing page.
 		if !c.IsLogged && c.Req.RequestURI == "/" && conf.Server.LandingURL != "/" {
-			c.Redirect(conf.Server.LandingURL)
+			c.SubURLRedirect(conf.Server.LandingURL)
 			return
 		}
 

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.