Added HTTPS support.
This commit is contained in:
parent
337ebb67b4
commit
502e146f92
3 changed files with 28 additions and 4 deletions
|
|
@ -58,6 +58,11 @@ type (
|
|||
ReadTimeout time.Duration `env:"HTTP_READ_TIMEOUT,default=5s"`
|
||||
WriteTimeout time.Duration `env:"HTTP_WRITE_TIMEOUT,default=10s"`
|
||||
IdleTimeout time.Duration `env:"HTTP_IDLE_TIMEOUT,default=2m"`
|
||||
TLS struct {
|
||||
Enabled bool `env:"HTTP_TLS_ENABLED,default=false"`
|
||||
Certificate string `env:"HTTP_TLS_CERTIFICATE"`
|
||||
Key string `env:"HTTP_TLS_KEY"`
|
||||
}
|
||||
}
|
||||
|
||||
// AppConfig stores application configuration
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue