mirror of
https://github.com/swissmakers/fail2ban-ui.git
synced 2026-04-11 13:47:05 +02:00
Fix Dockerfile to include language files
This commit is contained in:
@@ -32,12 +32,14 @@ func main() {
|
||||
if container {
|
||||
// In container, templates are assumed to be in /app/templates
|
||||
router.LoadHTMLGlob("/app/templates/*")
|
||||
router.Static("/locales", "/app/locales")
|
||||
} else {
|
||||
// When running locally, load templates from pkg/web/templates
|
||||
router.LoadHTMLGlob("pkg/web/templates/*")
|
||||
router.Static("/locales", "./internal/locales")
|
||||
}
|
||||
|
||||
// Register all application routes, including the static file serving route for locales.
|
||||
// Register all application routes, including the static files and templates.
|
||||
web.RegisterRoutes(router)
|
||||
|
||||
printWelcomeBanner(serverPort)
|
||||
|
||||
Reference in New Issue
Block a user