aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go7
1 files changed, 5 insertions, 2 deletions
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 <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)