diff options
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)  |