comments in config, added tmp to gitignore

This commit is contained in:
Johannes Bülow 2025-06-12 12:59:39 +02:00
parent 4a1b5e3ea5
commit 1962bd885b
Signed by: jmb
GPG key ID: B56971CF7B8F83A6
2 changed files with 3 additions and 0 deletions

1
.gitignore vendored
View file

@ -2,6 +2,7 @@
venv/ venv/
/storage/ /storage/
scanners/ole/venv/ scanners/ole/venv/
tmp/
# Created by https://www.toptal.com/developers/gitignore/api/linux,go,vim,visualstudiocode,macos,windows # Created by https://www.toptal.com/developers/gitignore/api/linux,go,vim,visualstudiocode,macos,windows
# Edit at https://www.toptal.com/developers/gitignore?templates=linux,go,vim,visualstudiocode,macos,windows # Edit at https://www.toptal.com/developers/gitignore?templates=linux,go,vim,visualstudiocode,macos,windows

View file

@ -37,12 +37,14 @@ func setDefaults() {
viper.SetDefault("web.key", "/etc/ssl/key/ssl-cert-snakeoil.key") viper.SetDefault("web.key", "/etc/ssl/key/ssl-cert-snakeoil.key")
viper.SetDefault("web.loghttp", true) viper.SetDefault("web.loghttp", true)
viper.SetDefault("web.maxfilesizemb", 100) viper.SetDefault("web.maxfilesizemb", 100)
// Database
viper.SetDefault("db.host", "localhost") viper.SetDefault("db.host", "localhost")
viper.SetDefault("db.port", 5432) viper.SetDefault("db.port", 5432)
viper.SetDefault("db.user", "scanfile") viper.SetDefault("db.user", "scanfile")
viper.SetDefault("db.database", "scanfile") viper.SetDefault("db.database", "scanfile")
viper.SetDefault("db.password", "CHANGEME") viper.SetDefault("db.password", "CHANGEME")
viper.SetDefault("db.debug", false) viper.SetDefault("db.debug", false)
// Others
viper.SetDefault("processing.oleurl", "http://localhost:5000") viper.SetDefault("processing.oleurl", "http://localhost:5000")
viper.SetDefault("store.path", "./storage/files/") viper.SetDefault("store.path", "./storage/files/")
viper.SetDefault("debug", false) viper.SetDefault("debug", false)