Mercurial > gemma
diff pkg/config/config.go @ 958:2818ad6c7d32
Started with import queue.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Tue, 16 Oct 2018 14:59:32 +0200 |
parents | da526b58c9c4 |
children | 14425e35e3c2 |
line wrap: on
line diff
--- a/pkg/config/config.go Tue Oct 16 14:38:46 2018 +0200 +++ b/pkg/config/config.go Tue Oct 16 14:59:32 2018 +0200 @@ -47,6 +47,8 @@ func GeoServerPassword() string { return viper.GetString("geoserver-password") } func GeoServerClean() bool { return viper.GetBool("geoserver-clean") } +func TmpDir() string { return viper.GetString("tmp-dir") } + var ( proxyKeyOnce sync.Once proxyKey []byte @@ -153,6 +155,8 @@ str("proxy-key", "", `signing key for proxy URLs. Defaults to random key.`) str("proxy-prefix", "", `URL prefix of proxy. Defaults to "http://${web-host}:${web-port}"`) + str("tmp-dir", "", "Temp directory of gemma server. Defaults to system temp directory.") + } func initConfig() {