Migration to kubernetes + vault-agent

This commit is contained in:
2025-01-13 17:00:23 +01:00
parent 4219a7d001
commit 60ab4ff110
13 changed files with 197 additions and 90 deletions

View File

@@ -39,7 +39,7 @@ func SendToVarnish(method string, url string, tag map[string]string) int {
domain := strings.Trim(VarnishList[i], "\r\n")
req, err := http.NewRequest(method, domain+url, nil)
if err != nil {
log.Fatal("Create new request : %s", err)
log.Println("Create new request : ", err)
}
// If X-Cache-Tags header is not empty with pass it to varnish.
if tag["X-Cache-Tags"] != "" {