mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-02-07 11:36:25 +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
|
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() {
|
func init() {
|
||||||
Reset()
|
Reset()
|
||||||
}
|
}
|
||||||
@ -255,9 +261,6 @@ func Reset() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Configure() error {
|
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()
|
flag.Parse()
|
||||||
|
|
||||||
if port := os.Getenv("PORT"); len(port) > 0 {
|
if port := os.Getenv("PORT"); len(port) > 0 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user