NUKE
Some checks failed
Docker image builds / build (push) Failing after 4m22s

This commit is contained in:
Soph :3 2026-02-07 14:27:38 +02:00
parent d2205b11a7
commit 02b9aebbe5
341 changed files with 1571 additions and 32574 deletions

View file

@ -8,8 +8,8 @@ import (
"net/http"
"path/filepath"
"github.com/TecharoHQ/anubis"
"github.com/TecharoHQ/anubis/internal"
"git.sad.ovh/sophie/nuke"
"git.sad.ovh/sophie/nuke/internal"
)
var (
@ -24,16 +24,16 @@ func init() {
Mount(http.DefaultServeMux)
//goland:noinspection GoBoolExpressions
if anubis.Version != "devel" {
if nuke.Version != "devel" {
URL = filepath.Join(filepath.Dir(URL), "xess.min.css")
}
URL = URL + "?cachebuster=" + anubis.Version
URL = URL + "?cachebuster=" + nuke.Version
}
// Mount registers the xess static file handlers on the given mux
func Mount(mux *http.ServeMux) {
prefix := anubis.BasePrefix + "/.within.website/x/xess/"
prefix := nuke.BasePrefix + "/.within.website/x/xess/"
mux.Handle(prefix, internal.UnchangingCache(http.StripPrefix(prefix, http.FileServerFS(Static))))
}