fixed file browsers
This commit is contained in:
parent
302835b83b
commit
30e44abd03
@ -81,7 +81,7 @@ func (con Connection) getBrowserInfoFromServerId(serverId string) (*models.FileB
|
||||
Id: container.ID,
|
||||
OwnerId: browserInfo.OwnerId,
|
||||
ConnectedTo: *serverInfo,
|
||||
Url: serverInfo.Id[:12] + "." + DOMAIN,
|
||||
Url: serverInfo.Id[:12] + ".browsers." + DOMAIN,
|
||||
}, nil
|
||||
|
||||
}
|
||||
|
@ -652,7 +652,7 @@ func (con Connection) BrowseServer(ctx *gin.Context) {
|
||||
labelId := serverInfo.Id[:12]
|
||||
browserLabels := make(map[string]string)
|
||||
browserLabels["traefik.enable"] = "true"
|
||||
browserLabels[fmt.Sprintf("traefik.http.routers.%s.rule", labelId)] = fmt.Sprintf("Host(`%s.{service_type}.{DOMAIN}`)", labelId)
|
||||
browserLabels[fmt.Sprintf("traefik.http.routers.%s.rule", labelId)] = fmt.Sprintf("Host(`%s.browsers.%s`)", labelId, DOMAIN)
|
||||
browserLabels[fmt.Sprintf("traefik.http.routers.%s.entrypoints", labelId)] = "websecure"
|
||||
browserLabels[fmt.Sprintf("traefik.http.routers.%s.middlewares", labelId)] = "games@docker"
|
||||
browserLabels[fmt.Sprintf("traefik.http.routers.%s.tls.domains[0].main", labelId)] = fmt.Sprintf("%s.%s", "browsers", DOMAIN)
|
||||
|
Loading…
x
Reference in New Issue
Block a user