diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2024-07-09 11:31:08 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2024-07-09 11:31:08 +0530 |
commit | c3821df233523ab715fdf06d54c142394411c968 (patch) | |
tree | 4f19352740fc5e38b5a8bd98244bafa30e037b1c /main.go | |
parent | d0a44ff5cfad5d063929426e2420f6f0d55b1dbe (diff) |
added logo/signature upload routesv0.10.0
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,5 +1,5 @@ /* openbills - Server for web based Libre Billing Software - * Copyright (C) 2023 Vidhu Kant Sharma <vidhukant@vidhukant.com> + * Copyright (C) 2023-2024 Vidhu Kant Sharma <vidhukant@vidhukant.com> * * 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) |