Fixed not parsing yaml https certificates correctly
Signed-off-by: arzumify <jliwin98@danwin1210.de>
This commit is contained in:
parent
322e901d16
commit
ac7230c6b5
8
main.go
8
main.go
|
@ -46,8 +46,8 @@ type Config struct {
|
||||||
Level float64 `yaml:"level" validate:"omitempty,min=1,max=22"`
|
Level float64 `yaml:"level" validate:"omitempty,min=1,max=22"`
|
||||||
} `yaml:"compression"`
|
} `yaml:"compression"`
|
||||||
HTTPS struct {
|
HTTPS struct {
|
||||||
CertificatePath string `yaml:"certificatePath" validate:"required"`
|
CertificatePath string `yaml:"certificate" validate:"required"`
|
||||||
KeyPath string `yaml:"keyPath" validate:"required"`
|
KeyPath string `yaml:"key" validate:"required"`
|
||||||
}
|
}
|
||||||
Logging struct {
|
Logging struct {
|
||||||
Enabled bool `yaml:"enabled"`
|
Enabled bool `yaml:"enabled"`
|
||||||
|
@ -74,8 +74,8 @@ type Config struct {
|
||||||
} `yaml:"static" validate:"required_without=Proxy"`
|
} `yaml:"static" validate:"required_without=Proxy"`
|
||||||
} `yaml:"paths"`
|
} `yaml:"paths"`
|
||||||
HTTPS struct {
|
HTTPS struct {
|
||||||
CertificatePath string `yaml:"certificatePath" validate:"required"`
|
CertificatePath string `yaml:"certificate" validate:"required"`
|
||||||
KeyPath string `yaml:"keyPath" validate:"required"`
|
KeyPath string `yaml:"key" validate:"required"`
|
||||||
} `yaml:"https"`
|
} `yaml:"https"`
|
||||||
Compression struct {
|
Compression struct {
|
||||||
Algorithm string `yaml:"algorithm" validate:"omitempty,oneof=gzip brotli zstd"`
|
Algorithm string `yaml:"algorithm" validate:"omitempty,oneof=gzip brotli zstd"`
|
||||||
|
|
Loading…
Reference in New Issue