🐛 Fix large JWT headers
This commit is contained in:
		@@ -1,9 +1,10 @@
 | 
			
		||||
package server
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	"git.solsynth.dev/hypernet/nexus/pkg/nex/sec"
 | 
			
		||||
	"strings"
 | 
			
		||||
 | 
			
		||||
	"git.solsynth.dev/hypernet/nexus/pkg/nex/sec"
 | 
			
		||||
 | 
			
		||||
	"git.solsynth.dev/hypernet/paperclip/pkg/internal/server/api"
 | 
			
		||||
 | 
			
		||||
	"github.com/gofiber/fiber/v2"
 | 
			
		||||
@@ -31,6 +32,7 @@ func NewServer() *App {
 | 
			
		||||
		JSONEncoder:           jsoniter.ConfigCompatibleWithStandardLibrary.Marshal,
 | 
			
		||||
		JSONDecoder:           jsoniter.ConfigCompatibleWithStandardLibrary.Unmarshal,
 | 
			
		||||
		BodyLimit:             512 * 1024 * 1024 * 1024, // 512 TiB
 | 
			
		||||
		ReadBufferSize:        5 * 1024 * 1024,          // 5MB for large JWT
 | 
			
		||||
		EnablePrintRoutes:     viper.GetBool("debug.print_routes"),
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user