mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
feat: add env for ignore docker socket check #1024
This commit is contained in:
parent
202ac03537
commit
5b0cbf98e1
21 changed files with 3155 additions and 2859 deletions
|
@ -28,15 +28,16 @@ func InitPrivateRouter(r *gin.RouterGroup) {
|
|||
}
|
||||
|
||||
func InitSelfCheckRouter(r *gin.RouterGroup) {
|
||||
g := r.Group("self_check")
|
||||
g.GET("", authIfInstalled, SelfCheck)
|
||||
g.POST("/:name/fix", authIfInstalled, SelfCheckFix)
|
||||
g.GET("websocket", authIfInstalled, CheckWebSocket)
|
||||
g := r.Group("self_check", authIfInstalled)
|
||||
g.GET("", middleware.Proxy(), SelfCheck)
|
||||
g.POST("/:name/fix", middleware.Proxy(), SelfCheckFix)
|
||||
g.GET("websocket", middleware.ProxyWs(), CheckWebSocket)
|
||||
}
|
||||
|
||||
func InitBackupRestoreRouter(r *gin.RouterGroup) {
|
||||
r.POST("system/backup/restore",
|
||||
authIfInstalled,
|
||||
middleware.Proxy(),
|
||||
middleware.EncryptedForm(),
|
||||
RestoreBackup)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue