mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-01-18 11:12:10 +02:00
Move flags defenition out of config.Configure
This commit is contained in:
parent
29e4188cd3
commit
77642c869c
@ -132,6 +132,12 @@ var (
|
||||
BufferPoolCalibrationThreshold int
|
||||
)
|
||||
|
||||
var (
|
||||
keyPath = flag.String("keypath", "", "path of the file with hex-encoded key")
|
||||
saltPath = flag.String("saltpath", "", "path of the file with hex-encoded salt")
|
||||
presetsPath = flag.String("presets", "", "path of the file with presets")
|
||||
)
|
||||
|
||||
func init() {
|
||||
Reset()
|
||||
}
|
||||
@ -255,9 +261,6 @@ func Reset() {
|
||||
}
|
||||
|
||||
func Configure() error {
|
||||
keyPath := flag.String("keypath", "", "path of the file with hex-encoded key")
|
||||
saltPath := flag.String("saltpath", "", "path of the file with hex-encoded salt")
|
||||
presetsPath := flag.String("presets", "", "path of the file with presets")
|
||||
flag.Parse()
|
||||
|
||||
if port := os.Getenv("PORT"); len(port) > 0 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user