feat: add configurable HTTPS port
All checks were successful
renovate / renovate (push) Successful in 19s
Docker Build and Push / build-and-push (push) Successful in 1m24s

This commit is contained in:
2025-12-28 20:03:49 +07:00
parent c3a469be64
commit bf7f7bd8da
3 changed files with 4 additions and 2 deletions

View File

@@ -14,13 +14,14 @@ import (
func NewHTTPSServer() error {
domain := utils.Getenv("DOMAIN", "localhost")
httpsPort := utils.Getenv("HTTPS_PORT", "8443")
tlsConfig, err := NewTLSConfig(domain)
if err != nil {
return fmt.Errorf("failed to initialize TLS config: %w", err)
}
ln, err := tls.Listen("tcp", ":443", tlsConfig)
ln, err := tls.Listen("tcp", ":"+httpsPort, tlsConfig)
if err != nil {
return err
}