Compare commits

..

2 Commits

Author SHA1 Message Date
Stavros 2e4b6f2bee chore: format 2026-02-20 09:33:05 +01:00
Stavros df2dca13e9 feat: log proxy headers in trace log 2026-02-20 10:31:29 +02:00
2 changed files with 22 additions and 19 deletions
+20 -19
View File
@@ -15,25 +15,26 @@ export default defineConfig({
build: {
rollupOptions: {
output: {
manualChunks: {
ui: [
"@radix-ui/react-dropdown-menu",
"@radix-ui/react-label",
"@radix-ui/react-select",
"@radix-ui/react-separator",
"@radix-ui/react-slot",
"input-otp",
"tailwindcss",
"tailwind-merge",
"sonner",
"lucide-react",
],
i18n: [
"i18next",
"i18next-browser-languagedetector",
"i18next-resources-to-backend",
],
util: ["zod", "axios", "react-hook-form"],
manualChunks(id) {
if (id.includes("node_modules")) {
if (id.includes("/react")) {
return "vendor-react";
}
if (id.includes("/@radix-ui")) {
return "vendor-radix";
}
if (id.includes("/i18next")) {
return "vendor-i18next";
}
if (id.includes("/zod")) {
return "vendor-zod";
}
return "vendor";
}
},
},
},
+2
View File
@@ -94,6 +94,8 @@ func (controller *ProxyController) proxyHandler(c *gin.Context) {
proto := c.Request.Header.Get("X-Forwarded-Proto")
host := c.Request.Header.Get("X-Forwarded-Host")
tlog.App.Trace().Str("x-forwarded-proto", proto).Str("x-forwarded-host", host).Str("x-forwarded-uri", uri).Msg("Proxy headers")
// Get acls
acls, err := controller.acls.GetAccessControls(host)