Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pkg/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"net/http"
"net/url"
"path/filepath"
"strconv"
"strings"

auth "github.com/abbot/go-http-auth"
Expand Down Expand Up @@ -141,6 +142,8 @@ func StartServer(version, commit, branch, date string) {
// If the client request has a cache-control header (such as 'no-cache'), pass them
// onto the imageproxy so that this can be respected.
p.PassRequestHeaders = append(p.PassRequestHeaders, "Cache-Control")
u, _ := url.Parse("http://127.0.0.1:" + strconv.Itoa(config.Config.Server.Port))
p.DefaultBaseURL = u
r.PathPrefix("/img/").Handler(ForceShortCacheHandler(http.StripPrefix("/img", p)))
hmp := NewHeatmapThumbnailProxy(p, diskCache(filepath.Join(common.AppDir, "heatmapthumbnailproxy")))
r.PathPrefix("/imghm/").Handler(http.StripPrefix("/imghm", hmp))
Expand Down
1 change: 1 addition & 0 deletions ui/src/views/scenes/Details.vue
Original file line number Diff line number Diff line change
Expand Up @@ -872,6 +872,7 @@ watch:{
} catch {
return u
}
return u
},
getIndicatorURL (idx) {
if (this.images[idx] !== undefined) {
Expand Down
Loading