Server qr fixes.
This commit is contained in:
@@ -29,8 +29,8 @@ type ServerConfig struct {
|
||||
|
||||
// TLSConfig holds TLS/HTTPS configuration
|
||||
type TLSConfig struct {
|
||||
Enabled bool `json:"enabled"` // Enable HTTPS
|
||||
Mode string `json:"mode"` // "self-signed", "custom", or "autocert"
|
||||
Enabled bool `json:"enabled"` // Enable HTTPS
|
||||
Mode string `json:"mode"` // "self-signed", "custom", or "autocert"
|
||||
CertFile string `json:"cert_file,omitempty"` // Path to certificate file (for custom mode)
|
||||
KeyFile string `json:"key_file,omitempty"` // Path to key file (for custom mode)
|
||||
|
||||
@@ -38,10 +38,10 @@ type TLSConfig struct {
|
||||
CertDir string `json:"cert_dir,omitempty"` // Directory to store generated certificates
|
||||
|
||||
// Let's Encrypt / autocert options
|
||||
Domain string `json:"domain,omitempty"` // Domain name for Let's Encrypt
|
||||
Email string `json:"email,omitempty"` // Email for Let's Encrypt notifications
|
||||
CacheDir string `json:"cache_dir,omitempty"` // Cache directory for autocert
|
||||
Production bool `json:"production,omitempty"` // Use Let's Encrypt production (default: staging)
|
||||
Domain string `json:"domain,omitempty"` // Domain name for Let's Encrypt
|
||||
Email string `json:"email,omitempty"` // Email for Let's Encrypt notifications
|
||||
CacheDir string `json:"cache_dir,omitempty"` // Cache directory for autocert
|
||||
Production bool `json:"production,omitempty"` // Use Let's Encrypt production (default: staging)
|
||||
}
|
||||
|
||||
// WhatsAppConfig holds configuration for a WhatsApp account
|
||||
|
||||
Reference in New Issue
Block a user