From ac7230c6b543265d5adb6d7ab922a2a9f5c5c6a3 Mon Sep 17 00:00:00 2001 From: arzumify Date: Sun, 3 Nov 2024 13:05:44 +0000 Subject: [PATCH] Fixed not parsing yaml https certificates correctly Signed-off-by: arzumify --- main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index 0b40aa0..9382559 100644 --- a/main.go +++ b/main.go @@ -46,8 +46,8 @@ type Config struct { Level float64 `yaml:"level" validate:"omitempty,min=1,max=22"` } `yaml:"compression"` HTTPS struct { - CertificatePath string `yaml:"certificatePath" validate:"required"` - KeyPath string `yaml:"keyPath" validate:"required"` + CertificatePath string `yaml:"certificate" validate:"required"` + KeyPath string `yaml:"key" validate:"required"` } Logging struct { Enabled bool `yaml:"enabled"` @@ -74,8 +74,8 @@ type Config struct { } `yaml:"static" validate:"required_without=Proxy"` } `yaml:"paths"` HTTPS struct { - CertificatePath string `yaml:"certificatePath" validate:"required"` - KeyPath string `yaml:"keyPath" validate:"required"` + CertificatePath string `yaml:"certificate" validate:"required"` + KeyPath string `yaml:"key" validate:"required"` } `yaml:"https"` Compression struct { Algorithm string `yaml:"algorithm" validate:"omitempty,oneof=gzip brotli zstd"`