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() {
web.urlCache = make(map[string]string, 5)
if !viper.GetBool("gin.debug") {
gin.SetMode(gin.ReleaseMode)
}
web.validateProxyURL()
web.initDB()
web.initRouter()

View file

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