gin debug/release option

This commit is contained in:
BroodjeAap 2023-01-02 12:45:56 +00:00
parent a6a8fafcf5
commit 2ee7df1d31
2 changed files with 3 additions and 1 deletions

View file

@ -53,6 +53,9 @@ func newWeb() *Web {
func (web *Web) init() { func (web *Web) init() {
web.urlCache = make(map[string]string, 5) web.urlCache = make(map[string]string, 5)
if !viper.GetBool("gin.debug") {
gin.SetMode(gin.ReleaseMode)
}
web.validateProxyURL() web.validateProxyURL()
web.initDB() web.initDB()
web.initRouter() web.initRouter()

View file

@ -9,5 +9,4 @@
- postgresql+apprise+browserless - postgresql+apprise+browserless
- add kube yaml example? - add kube yaml example?
- organize docs? - organize docs?
- disable gin debug
- add favicon - add favicon