From c3821df233523ab715fdf06d54c142394411c968 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Tue, 9 Jul 2024 11:31:08 +0530 Subject: added logo/signature upload routes --- main.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index b1150d4..dcac46e 100644 --- a/main.go +++ b/main.go @@ -1,5 +1,5 @@ /* openbills - Server for web based Libre Billing Software - * Copyright (C) 2023 Vidhu Kant Sharma + * Copyright (C) 2023-2024 Vidhu Kant Sharma * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -38,7 +38,7 @@ import ( "log" ) -const OPENBILLS_VERSION = "v0.9.0" +const OPENBILLS_VERSION = "v0.10.0" func init() { if !viper.GetBool("debug_mode") { @@ -49,6 +49,9 @@ func init() { func main() { r := gin.New() r.SetTrustedProxies([]string{"127.0.0.1"}) + r.MaxMultipartMemory = 4 << 20 + + r.Static("/pub/", viper.GetString("data.upload_dir")) r.GET("/info", serverInfo) -- cgit v1.2.3